diff options
author | Mans Rullgard <mans@mansr.com> | 2011-10-11 00:58:03 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-10-11 12:05:51 +0100 |
commit | be1242a3f2b28e9cb08515bdc1db6c14403c279a (patch) | |
tree | 4a97227174cc0917040633301f51da7d8fb4d498 /libavformat/assenc.c | |
parent | c79d2a20bad59298188171f1316a830d563a41ee (diff) | |
download | ffmpeg-be1242a3f2b28e9cb08515bdc1db6c14403c279a.tar.gz |
h264: fix detection of optional trailing PPS elements
The PPS may contain a few trailing elements whose presence is
only signalled by data remaining after the the mandatory part
has been parsed. The current code fails to take into account
the rbsp_trailing_bits() when deciding whether to parse these
optional elements. Assuming no unnecessary padding bytes are
passed to this function, the optional elements are present if
either more than 8 extra bits remain or the remaining bits do
not form a valid rbsp_trailing_bits() after the mandatory PPS
elements have been parsed.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/assenc.c')
0 files changed, 0 insertions, 0 deletions