summaryrefslogtreecommitdiff
path: root/libavcodec/wmv2dec.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-08-17 12:25:39 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2015-08-28 14:40:59 -0400
commit2fb593dcb90c157a183e9e01e42405fcca73a8b8 (patch)
tree1f221abf08ceac421b4e7393fe9e0f9192b25949 /libavcodec/wmv2dec.c
parent1e50f953fac7fb3af907a24f9fc301fa80f441b4 (diff)
Put remaining pieces of CODEC_FLAG_EMU_EDGE under FF_API_EMU_EDGE.
The amv one probably looks suspicious, but since it's an intra-only codec, I couldn't possibly imagine what it would use the edge for, and the vsynth fate result doesn't change, so it's probably OK.
Diffstat (limited to 'libavcodec/wmv2dec.c')
-rw-r--r--libavcodec/wmv2dec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/wmv2dec.c b/libavcodec/wmv2dec.c
index f8128dc52a..cd17358287 100644
--- a/libavcodec/wmv2dec.c
+++ b/libavcodec/wmv2dec.c
@@ -453,7 +453,9 @@ static av_cold int wmv2_decode_init(AVCodecContext *avctx)
Wmv2Context *const w = avctx->priv_data;
int ret;
+#if FF_API_EMU_EDGE
avctx->flags |= CODEC_FLAG_EMU_EDGE;
+#endif
if ((ret = ff_msmpeg4_decode_init(avctx)) < 0)
return ret;