aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpdec_mpa_robust.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-24 22:55:14 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-24 22:55:20 +0100
commit3804d73e46517a7db8464f5affd49b9406dc91ba (patch)
tree5ebac75e43d9b69bfe1bfba880a60caecb642830 /libavformat/rtpdec_mpa_robust.c
parent48e3cd4fcd49cd7663f56611e20abb5a860caeaa (diff)
parent5d8cae45737bed6239bd6b6e0698802dbe1463c8 (diff)
downloadffmpeg-3804d73e46517a7db8464f5affd49b9406dc91ba.tar.gz
Merge commit '5d8cae45737bed6239bd6b6e0698802dbe1463c8'
* commit '5d8cae45737bed6239bd6b6e0698802dbe1463c8': rtpdec: Get rid of all trivial .alloc/.free functions Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_mpa_robust.c')
-rw-r--r--libavformat/rtpdec_mpa_robust.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavformat/rtpdec_mpa_robust.c b/libavformat/rtpdec_mpa_robust.c
index 243c0144ec..447a1abc32 100644
--- a/libavformat/rtpdec_mpa_robust.c
+++ b/libavformat/rtpdec_mpa_robust.c
@@ -33,11 +33,6 @@ struct PayloadContext {
AVIOContext *fragment;
};
-static PayloadContext *mpa_robust_new_context(void)
-{
- return av_mallocz(sizeof(PayloadContext));
-}
-
static inline void free_fragment(PayloadContext *data)
{
if (data->fragment) {
@@ -209,7 +204,7 @@ RTPDynamicProtocolHandler ff_mpeg_audio_robust_dynamic_handler = {
.codec_type = AVMEDIA_TYPE_AUDIO,
.codec_id = AV_CODEC_ID_MP3ADU,
.need_parsing = AVSTREAM_PARSE_HEADERS,
- .alloc = mpa_robust_new_context,
+ .priv_data_size = sizeof(PayloadContext),
.free = mpa_robust_free_context,
.parse_packet = mpa_robust_parse_packet,
};