diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-12 12:31:35 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-17 12:21:48 +0100 |
commit | 2c9106257ffca8faef367a410c16bd8220942f6e (patch) | |
tree | c282f20ab4b59aab491719d2cbb1241ea4c458d9 /libavcodec/mpeg4videodec.c | |
parent | 85407c7e63722a2d723257e8cf5f281a8c9f34a4 (diff) |
avcodec/mpeg4videodec: Workaround interlaced mpeg4 edge MC bug
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mpeg4videodec.c')
-rw-r--r-- | libavcodec/mpeg4videodec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index 3adf28d2f8..1a2771a1f9 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -2195,6 +2195,13 @@ int ff_mpeg4_workaround_bugs(AVCodecContext *avctx) if (ctx->lavc_build <= 4712U) s->workaround_bugs |= FF_BUG_DC_CLIP; + if ((ctx->lavc_build&0xFF) >= 100) { + if (ctx->lavc_build > 3621476 && ctx->lavc_build < 3752552 && + (ctx->lavc_build < 3752037 || ctx->lavc_build > 3752191) // 3.2.1+ + ) + s->workaround_bugs |= FF_BUG_IEDGE; + } + if (ctx->divx_version >= 0) s->workaround_bugs |= FF_BUG_DIRECT_BLOCKSIZE; if (ctx->divx_version == 501 && ctx->divx_build == 20020416) |