mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
lavc/mediacodec: fix codec_name leak
This commit is contained in:
@@ -566,5 +566,7 @@ int ff_mediacodec_dec_close(AVCodecContext *avctx, MediaCodecDecContext *s)
|
||||
s->format = NULL;
|
||||
}
|
||||
|
||||
av_freep(&s->codec_name);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
typedef struct MediaCodecDecContext {
|
||||
|
||||
const char *codec_name;
|
||||
char *codec_name;
|
||||
|
||||
FFAMediaCodec *codec;
|
||||
FFAMediaFormat *format;
|
||||
|
||||
Reference in New Issue
Block a user