Browse Source

xbm: use av_frame_free on close

tags/n2.3
Vittorio Giovara 11 years ago
parent
commit
792e4c21f2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/xbmenc.c

+ 1
- 1
libavcodec/xbmenc.c View File

@@ -69,7 +69,7 @@ static int xbm_encode_frame(AVCodecContext *avctx, AVPacket *pkt,


static av_cold int xbm_encode_close(AVCodecContext *avctx) static av_cold int xbm_encode_close(AVCodecContext *avctx)
{ {
av_freep(&avctx->coded_frame);
av_frame_free(&avctx->coded_frame);


return 0; return 0;
} }


Loading…
Cancel
Save