utvideo: handle empty Huffman trees
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 29 Oct 2011 17:35:20 +0000 (19:35 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 29 Oct 2011 19:54:08 +0000 (12:54 -0700)
commit46e1af3b0f2c28936dfa88063cc5a35f466f5ac3
treeefcf3d1ee0b3cf3619770afa2d99e43d512b6acd
parent425a84350507e18c57ba0bee32366eb5963a9da5
utvideo: handle empty Huffman trees

If the frame is filled with the same colour, encoder may produce no data
and the fill value is indicated by zero code length (the rest of symbols
will have 0xFF for code length, meaning invalid).  So such Huffman trees
should be treated specially.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/utvideo.c