[FFmpeg-cvslog] ffmpeg: avoid direct access to lowres use av_codec_g/set_lowres()

Michael Niedermayer git at videolan.org
Thu Oct 3 17:25:52 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct  3 16:59:11 2013 +0200| [4d5d905eed1e18cd688c3305b115fb07a2f105f5] | committer: Michael Niedermayer

ffmpeg: avoid direct access to lowres use av_codec_g/set_lowres()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4d5d905eed1e18cd688c3305b115fb07a2f105f5
---

 ffmpeg_opt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index a542b8d..59470f5 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -592,7 +592,7 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
         case AVMEDIA_TYPE_VIDEO:
             if(!ist->dec)
                 ist->dec = avcodec_find_decoder(dec->codec_id);
-            if (dec->lowres) {
+            if (av_codec_get_lowres(dec)) {
                 dec->flags |= CODEC_FLAG_EMU_EDGE;
             }
 



More information about the ffmpeg-cvslog mailing list