OSDN Git Service

dca_parser: Extend DTS core sync word and fix existing check
authorfoo86 <foobaz86@gmail.com>
Wed, 29 Apr 2015 08:14:55 +0000 (11:14 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 12 May 2015 01:20:25 +0000 (03:20 +0200)
commit0670acc4f1c4ceb16968818a654e07a3f550a8c9
treef1bb16265ab95e18cdbc9ce7651131e306dcd04a
parentb8d2630c5327d2818d05c8a48be0417905d8e0fd
dca_parser: Extend DTS core sync word and fix existing check

The previous version checked for 14-bit streams and did not properly
work across buffer boundaries.

Use the 64-bit parser state to make extended sync word detection work
across buffer boundary and check the extended sync word for 16-bit LE
and BE core streams to reduce probability of alias sync detection.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/dca_parser.c