You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/rtpdec_mpeg4: Use av_freep() to avoid leaving stale extradata pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -104,7 +104,7 @@ static int parse_fmtp_config(AVCodecContext *codec, char *value)
|
|||||||
{
|
{
|
||||||
/* decode the hexa encoded parameter */
|
/* decode the hexa encoded parameter */
|
||||||
int len = ff_hex_to_data(NULL, value);
|
int len = ff_hex_to_data(NULL, value);
|
||||||
av_free(codec->extradata);
|
av_freep(&codec->extradata);
|
||||||
if (ff_alloc_extradata(codec, len))
|
if (ff_alloc_extradata(codec, len))
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
ff_hex_to_data(codec->extradata, value);
|
ff_hex_to_data(codec->extradata, value);
|
||||||
|
Reference in New Issue
Block a user