Commit 99eb46e2 authored by rtogni's avatar rtogni

1000l: Fix check for max slice number


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11040 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7cbfb74e
...@@ -507,7 +507,7 @@ static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket * ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment