vmnc: Delay pixel size check
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 19 May 2015 15:57:46 +0000 (16:57 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 19 May 2015 17:55:30 +0000 (18:55 +0100)
commiteafbc6716cede6d4a652f8bedf82f2901c68d06d
treeaca2b135ce83d71e1ba9ec3f008b9cb525152b09
parent732dd658687bd9a2e5c622e38c481825b57af250
vmnc: Delay pixel size check

Some clients incorrectly set 24 as bits_per_coded_sample, while
the actual value is preserved in one of the codec headers.
In order to work around this, delay the check until decode_frame().

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavcodec/vmnc.c