Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
629a03a9
Commit
629a03a9
authored
Feb 27, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/rtpdec_vp9: Use ffio_free_dyn_buf()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
aa7a2fa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
rtpdec_vp9.c
libavformat/rtpdec_vp9.c
+2
-9
No files found.
libavformat/rtpdec_vp9.c
View file @
629a03a9
...
...
@@ -22,6 +22,7 @@
#include "libavcodec/bytestream.h"
#include "avio_internal.h"
#include "rtpdec_formats.h"
#define RTP_VP9_DESC_REQUIRED_SIZE 1
...
...
@@ -31,14 +32,6 @@ struct PayloadContext {
uint32_t
timestamp
;
};
static
void
vp9_free_dyn_buffer
(
AVIOContext
**
dyn_buf
)
{
uint8_t
*
ptr_dyn_buffer
;
avio_close_dyn_buf
(
*
dyn_buf
,
&
ptr_dyn_buffer
);
av_free
(
ptr_dyn_buffer
);
*
dyn_buf
=
NULL
;
}
static
av_cold
int
vp9_init
(
AVFormatContext
*
ctx
,
int
st_index
,
PayloadContext
*
data
)
{
...
...
@@ -68,7 +61,7 @@ static int vp9_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_vp9_ctx,
/* drop data of previous packets in case of non-continuous (lossy) packet stream */
if
(
rtp_vp9_ctx
->
buf
&&
rtp_vp9_ctx
->
timestamp
!=
*
timestamp
)
{
vp9_free_dyn_buffer
(
&
rtp_vp9_ctx
->
buf
);
ffio_free_dyn_buf
(
&
rtp_vp9_ctx
->
buf
);
}
/* sanity check for size of input packet: 1 byte payload at least */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment