X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffplay.c;h=d302793924bcccddca8b196dac5e3439e79ca93c;hb=56291434335c56fd436646338e5088c2c90b81bb;hp=cde88db71e72daa4e06e443489328aface1de7da;hpb=9dc30d08114068ccfe65e89c3c46deee3e6a2289;p=ffmpeg diff --git a/ffplay.c b/ffplay.c index cde88db71e7..d302793924b 100644 --- a/ffplay.c +++ b/ffplay.c @@ -31,7 +31,6 @@ #include #include "libavutil/avstring.h" -#include "libavutil/colorspace.h" #include "libavutil/eval.h" #include "libavutil/mathematics.h" #include "libavutil/pixdesc.h" @@ -49,7 +48,6 @@ #include "libswresample/swresample.h" #if CONFIG_AVFILTER -# include "libavfilter/avcodec.h" # include "libavfilter/avfilter.h" # include "libavfilter/buffersink.h" # include "libavfilter/buffersrc.h" @@ -2578,11 +2576,15 @@ static int stream_component_open(VideoState *is, int stream_index) } av_codec_set_lowres(avctx, stream_lowres); +#if FF_API_EMU_EDGE if(stream_lowres) avctx->flags |= CODEC_FLAG_EMU_EDGE; +#endif if (fast) avctx->flags2 |= AV_CODEC_FLAG2_FAST; +#if FF_API_EMU_EDGE if(codec->capabilities & AV_CODEC_CAP_DR1) avctx->flags |= CODEC_FLAG_EMU_EDGE; +#endif opts = filter_codec_opts(codec_opts, avctx->codec_id, ic, ic->streams[stream_index], codec); if (!av_dict_get(opts, "threads", NULL, 0))