summaryrefslogtreecommitdiff
path: root/libavformat/rmdec.c
diff options
context:
space:
mode:
authorRoberto Togni <r_togni@tiscali.it>2007-11-15 21:13:36 +0000
committerRoberto Togni <r_togni@tiscali.it>2007-11-15 21:13:36 +0000
commit27a2f87da8012efd31f0df063072c16345fbe115 (patch)
tree50bdf1d469af0c86e8d5342da8ab0baa1940e310 /libavformat/rmdec.c
parente29378ff886b574aba7402f885d0a62a9d728091 (diff)
1000l: Fix check for max slice number
Originally committed as revision 11040 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r--libavformat/rmdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index aebfead653..6027e31102 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -507,7 +507,7 @@ static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket *
pos = len2 - pos;
}
- if(++rm->cur_slice > rm->cur_slice)
+ if(++rm->cur_slice > rm->slices)
return 1;
AV_WL32(rm->videobuf - 7 + 8*rm->cur_slice, 1);
AV_WL32(rm->videobuf - 3 + 8*rm->cur_slice, rm->videobufpos - 8*rm->slices - 1);