lavc/mediacodec: fix codec_name leak
This commit is contained in:
parent
a68d4bf235
commit
31fe3c4d23
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user