1000l: Fix check for max slice number

Originally committed as revision 11040 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Roberto Togni 17 years ago
parent e29378ff88
commit 27a2f87da8
  1. 2
      libavformat/rmdec.c

@ -507,7 +507,7 @@ static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket *
pos = len2 - pos; pos = len2 - pos;
} }
if(++rm->cur_slice > rm->cur_slice) if(++rm->cur_slice > rm->slices)
return 1; return 1;
AV_WL32(rm->videobuf - 7 + 8*rm->cur_slice, 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); AV_WL32(rm->videobuf - 3 + 8*rm->cur_slice, rm->videobufpos - 8*rm->slices - 1);

Loading…
Cancel
Save