OSDN Git Service

rtpdec: Don't free the payload context in the .free function
authorMartin Storsjö <martin@martin.st>
Tue, 24 Feb 2015 11:07:57 +0000 (13:07 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 24 Feb 2015 21:07:35 +0000 (23:07 +0200)
commitbb4a310bb85f43e62240145a656b1e5285b14239
tree9f1b1e66cfa5c36737c5f203c74becd8ccb84404
parentf4b59334bd898c47c9ac30999a346176548630a8
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>
17 files changed:
libavformat/rdt.c
libavformat/rtpdec.h
libavformat/rtpdec_ac3.c
libavformat/rtpdec_dv.c
libavformat/rtpdec_h261.c
libavformat/rtpdec_h263_rfc2190.c
libavformat/rtpdec_h264.c
libavformat/rtpdec_jpeg.c
libavformat/rtpdec_latm.c
libavformat/rtpdec_mpa_robust.c
libavformat/rtpdec_mpeg4.c
libavformat/rtpdec_mpegts.c
libavformat/rtpdec_qt.c
libavformat/rtpdec_svq3.c
libavformat/rtpdec_vp8.c
libavformat/rtpdec_xiph.c
libavformat/rtsp.c