Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 36361:0caa0bf428b9
Fix a few memleaks.
author | reimar |
---|---|
date | Sun, 22 Sep 2013 08:34:08 +0000 |
parents | c728ba2a3f70 |
children | 3cc8224f3c6c |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Sun Sep 22 07:31:55 2013 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sun Sep 22 08:34:08 2013 +0000 @@ -922,7 +922,7 @@ ret = avcodec_decode_video2(avctx, pic, &got_picture, &pkt); pkt.data = NULL; pkt.size = 0; - av_destruct_packet(&pkt); + av_packet_free_side_data(&pkt); // even when we do dr we might actually get a buffer we had // FFmpeg allocate - this mostly happens with nonref_dr.