conform to spec
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Apr 2007 23:24:31 +0000 (23:24 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Apr 2007 23:24:31 +0000 (23:24 +0000)
Originally committed as revision 8668 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/bethsoftvid.c

index 8d5f387..97439e8 100644 (file)
@@ -133,7 +133,7 @@ static int read_frame(BVID_DemuxContext *vid, ByteIOContext *pb, AVPacket *pkt,
         rle_num_bytes = get_byte(pb);
         vidbuf_start[vidbuf_nbytes++] = rle_num_bytes;
 
-        if(rle_num_bytes > 0x80){ // rle sequence
+        if(rle_num_bytes >= 0x80){ // rle sequence
             if(block_type == VIDEO_I_FRAME)
                 vidbuf_start[vidbuf_nbytes++] = get_byte(pb);
             bytes_copied += rle_num_bytes - 0x80;