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)
committerReinhard Tartler <siretart@tauware.de>
Wed, 14 Mar 2012 19:56:55 +0000 (20:56 +0100)
commitd94256d36cc789788a68c6b35d31481c4b16fdd3
treeb77c23193123a322d7d229fb8a1388e028068b4c
parent7bb97a61dfb65a3825e17c2dc1e0e693b5607ec6
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
(cherry picked from commit 8a6037c3900875ccab8d553d2cc659bdef2c9d0e)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/h264.c