You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/h264_parser: Use av_freep() to avoid leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -547,7 +547,7 @@ static void close(AVCodecParserContext *s)
|
||||
H264Context *h = s->priv_data;
|
||||
ParseContext *pc = &h->parse_context;
|
||||
|
||||
av_free(pc->buffer);
|
||||
av_freep(&pc->buffer);
|
||||
ff_h264_free_context(h);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user