Mercurial > mplayer.hg
changeset 36423:b2dfbef1ac29
Avoid resetting fields when we will never have set them in the first place.
Should avoid memleak issues with h264_vda.
Untested, and h264_vda should not preferably be changed in FFmpeg
to not expose such details of its implementation.
author | reimar |
---|---|
date | Tue, 19 Nov 2013 18:10:47 +0000 |
parents | 0012cdc65efd |
children | 0c9ee8197064 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Tue Nov 19 11:03:11 2013 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Tue Nov 19 18:10:47 2013 +0000 @@ -272,7 +272,7 @@ avctx-> reget_buffer = avctx-> get_buffer = get_buffer; avctx->release_buffer = release_buffer; - } else { + } else if (lavc_codec->capabilities & CODEC_CAP_DR1) { avctx->flags &= ~CODEC_FLAG_EMU_EDGE; avctx-> reget_buffer = avcodec_default_reget_buffer; avctx-> get_buffer = avcodec_default_get_buffer;