[FFmpeg-cvslog] r21930 - trunk/libavcodec/vp3.c
conrad
subversion
Sun Feb 21 01:10:58 CET 2010
Author: conrad
Date: Sun Feb 21 01:10:58 2010
New Revision: 21930
Log:
Handle Theora's continued runs in superblock coding.
This doesn't really matter yet since 4:2:0 1080p has only 3060 superblocks,
but larger resolutions or 4:4:4 1080p could hit this case.
Modified:
trunk/libavcodec/vp3.c
Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c Sun Feb 21 01:10:54 2010 (r21929)
+++ trunk/libavcodec/vp3.c Sun Feb 21 01:10:58 2010 (r21930)
@@ -482,6 +482,9 @@ static int unpack_superblocks(Vp3DecodeC
if (bit)
num_partial_superblocks += current_run;
+ if (s->theora && current_run == MAXIMUM_LONG_BIT_RUN)
+ bit = get_bits1(gb);
+ else
bit ^= 1;
}
@@ -512,6 +515,9 @@ static int unpack_superblocks(Vp3DecodeC
}
superblocks_decoded += current_run;
+ if (s->theora && current_run == MAXIMUM_LONG_BIT_RUN)
+ bit = get_bits1(gb);
+ else
bit ^= 1;
}
}
More information about the ffmpeg-cvslog
mailing list