lavc/mediacodec: fix codec_name leak

This commit is contained in:
Matthieu Bouron 2016-03-14 19:27:14 +01:00
parent a68d4bf235
commit 31fe3c4d23
2 changed files with 3 additions and 1 deletions

View File

@ -566,5 +566,7 @@ int ff_mediacodec_dec_close(AVCodecContext *avctx, MediaCodecDecContext *s)
s->format = NULL;
}
av_freep(&s->codec_name);
return 0;
}

View File

@ -34,7 +34,7 @@
typedef struct MediaCodecDecContext {
const char *codec_name;
char *codec_name;
FFAMediaCodec *codec;
FFAMediaFormat *format;