Revert "h264: clear trailing bits in partially parsed NAL units"
authorJanne Grunau <janne-libav@jannau.net>
Mon, 12 Mar 2012 21:01:02 +0000 (22:01 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Mon, 12 Mar 2012 21:46:56 +0000 (22:46 +0100)
commit8a6037c3900875ccab8d553d2cc659bdef2c9d0e
treeaa38a61c35037d57c8a5efd190e77f69a98992ab
parent363bd1c62c1bcbac2dcb56f3dc47824f075888d2
Revert "h264: clear trailing bits in partially parsed NAL units"

This reverts commit 729ebb2f185244b0ff06d48edbbbbb02ceb4ed4e.

There was an off-by-one error in the bit mask calculation clearing
actually the last valid bit and causing
http://bugzilla.libav.org/show_bug.cgi?id=227

The broken sample (Mr_MrsSmith-h264_aac.mp4) the commit was fixing
does not work after correcting the off-by-one error.

CC: libav-stable@libav.org
libavcodec/h264.c