]> git.sesse.net Git - ffmpeg/commit
avcodec/dca: simplify 'residual ok' flag tracking
authorfoo86 <foobaz86@gmail.com>
Fri, 13 May 2016 09:48:24 +0000 (12:48 +0300)
committerJames Almer <jamrial@gmail.com>
Sat, 21 May 2016 01:54:48 +0000 (22:54 -0300)
commit801dbf0269b1bb5bc70c550e971491e0aea9eb70
treeb8701a85692b0369d65471f7c8df8f005d523608
parenta0349ae27c127df8c72de1c30dc4090360ec7ef4
avcodec/dca: simplify 'residual ok' flag tracking

Move this from separate structure field to a packet flag.

Behavior should be equivalent, except that residual flag is now properly
cleared when packet has no core frame at all.

Also print a message when forcing recovery mode due to invalid residual
to make debugging easier.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/dcadec.c
libavcodec/dcadec.h