aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/msmpeg4.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-01-09 11:37:08 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-01-09 11:37:08 +0000
commit2826984994807ef03d559da119594eddb8331651 (patch)
treebc78b7e303d54b0a25532b6d07c6f769c2baba3c /libavcodec/msmpeg4.c
parente5ab4fdd8e9710e6de7ad02c808d6abec94c279b (diff)
downloadffmpeg-2826984994807ef03d559da119594eddb8331651.tar.gz
fixed wmv2 slices
Originally committed as revision 1425 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/msmpeg4.c')
-rw-r--r--libavcodec/msmpeg4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c
index a08418874c..f2647cf0da 100644
--- a/libavcodec/msmpeg4.c
+++ b/libavcodec/msmpeg4.c
@@ -502,7 +502,7 @@ static void msmpeg4_encode_motion(MpegEncContext * s,
static inline void handle_slices(MpegEncContext *s){
if (s->mb_x == 0) {
if (s->slice_height && (s->mb_y % s->slice_height) == 0) {
- if(s->msmpeg4_version != 4){
+ if(s->msmpeg4_version < 4){
ff_mpeg4_clean_buffers(s);
}
s->first_slice_line = 1;
@@ -691,7 +691,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 && s->msmpeg4_version!=4){
+ if(s->first_slice_line && (n&2)==0 && s->msmpeg4_version<4){
b=c=1024;
}