mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 22:25:36 +01:00
Merge commit '5d8cae45737bed6239bd6b6e0698802dbe1463c8'
* commit '5d8cae45737bed6239bd6b6e0698802dbe1463c8': rtpdec: Get rid of all trivial .alloc/.free functions Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -298,21 +298,10 @@ static int qdm2_parse_packet(AVFormatContext *s, PayloadContext *qdm,
|
||||
return (qdm->cache > 0) ? 1 : 0;
|
||||
}
|
||||
|
||||
static PayloadContext *qdm2_extradata_new(void)
|
||||
{
|
||||
return av_mallocz(sizeof(PayloadContext));
|
||||
}
|
||||
|
||||
static void qdm2_extradata_free(PayloadContext *qdm)
|
||||
{
|
||||
av_free(qdm);
|
||||
}
|
||||
|
||||
RTPDynamicProtocolHandler ff_qdm2_dynamic_handler = {
|
||||
.enc_name = "X-QDM",
|
||||
.codec_type = AVMEDIA_TYPE_AUDIO,
|
||||
.codec_id = AV_CODEC_ID_NONE,
|
||||
.alloc = qdm2_extradata_new,
|
||||
.free = qdm2_extradata_free,
|
||||
.priv_data_size = sizeof(PayloadContext),
|
||||
.parse_packet = qdm2_parse_packet,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user