From 26893f6bd433b01e30d7f81782ff1577a9b3491b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 13 Oct 2002 19:53:32 +0000 Subject: [PATCH] fixing wmv1 slice decoding Originally committed as revision 1031 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/msmpeg4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index 0f6364f14a..e2a0fc98de 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c @@ -693,7 +693,7 @@ static inline int msmpeg4_pred_dc(MpegEncContext * s, int n, b = dc_val[ - 1 - wrap]; c = dc_val[ - wrap]; - if(s->first_slice_line && (n&2)==0){ + if(s->first_slice_line && (n&2)==0 && s->msmpeg4_version!=4){ b=c=1024; }