diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-24 13:07:57 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-24 23:07:35 +0200 |
commit | bb4a310bb85f43e62240145a656b1e5285b14239 (patch) | |
tree | 9f1b1e66cfa5c36737c5f203c74becd8ccb84404 /libavformat/rtpdec_h264.c | |
parent | f4b59334bd898c47c9ac30999a346176548630a8 (diff) | |
download | ffmpeg-bb4a310bb85f43e62240145a656b1e5285b14239.tar.gz |
rtpdec: Don't free the payload context in the .free function
This makes it more consistent with depacketizers that don't have any
.free function at all, where the payload context is freed by the
surrounding framework. Always free the context in the surrounding
framework, having the individual depacketizers only free any data
they've specifically allocated themselves.
This is similar to how this works for demuxer/muxers/codecs - a
component shouldn't free the priv_data that the framework has
allocated for it.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_h264.c')
-rw-r--r-- | libavformat/rtpdec_h264.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index a74be1fc05..99365d6745 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -382,8 +382,6 @@ static void h264_free_context(PayloadContext *data) data->packet_types_received[ii], ii); } #endif - - av_free(data); } static int parse_h264_sdp_line(AVFormatContext *s, int st_index, |