avcodec/ffv1enc: Fix storing RGB48 without explicitly set level
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 24 Oct 2016 23:15:56 +0000 (01:15 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 25 Oct 2016 00:51:34 +0000 (02:51 +0200)
commitc1173437fc3e4ef36a0f19211a9cd4e5c95ccb6c
tree7693ff7e684d01d21b052f6935cb17174376a05e
parentba53d3ae8bfbd9a66b6f18569c1c4c4d0cc03d7a
avcodec/ffv1enc: Fix storing RGB48 without explicitly set level

the bps value is only stored with level >= 1, using rgb48 with level 0 requires the
user app to keep track of the bps by external means, which does not always happen
also we force level >= 1 for other 16bps formats, so this is consistent.

Found-by: Jerome Martinez <jerome@mediaarea.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ffv1enc.c