Commit 0910488a authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/riffenc: Also check codec tag before setting raw_pal_avi

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a2f8beef
......@@ -212,6 +212,7 @@ void ff_put_bmp_header(AVIOContext *pb, AVCodecContext *enc,
int raw_pal_avi;
raw_pal_avi = !for_asf && enc->codec_id == AV_CODEC_ID_RAWVIDEO &&
!enc->codec_tag &&
enc->bits_per_coded_sample >= 1 && enc->bits_per_coded_sample <= 8;
if (!enc->extradata_size && raw_pal_avi)
extradata_size = 4 * (1 << enc->bits_per_coded_sample);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment