mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-11 17:30:00 +01:00
avformat/rtpdec_rfc4175: Fix memleak of sampling
Reviewed-by: Joshua Rogers <joshua@joshua.hu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit af3dee3132)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -128,7 +128,7 @@ static int rfc4175_parse_fmtp(AVFormatContext *s, AVStream *stream,
|
||||
data->width = atoi(value);
|
||||
else if (!strncmp(attr, "height", 6))
|
||||
data->height = atoi(value);
|
||||
else if (!strncmp(attr, "sampling", 8))
|
||||
else if (data->sampling == NULL && !strncmp(attr, "sampling", 8))
|
||||
data->sampling = av_strdup(value);
|
||||
else if (!strncmp(attr, "depth", 5))
|
||||
data->depth = atoi(value);
|
||||
|
||||
Reference in New Issue
Block a user