mirror of https://git.ffmpeg.org/ffmpeg.git
according to specs, only color table id set to 0, have it in stsd, fix 4colors.mov
Originally committed as revision 12604 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d3bc61ac75
commit
71f3623510
|
@ -769,7 +769,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
|
||||||
if (color_index < 0)
|
if (color_index < 0)
|
||||||
color_index = 0;
|
color_index = 0;
|
||||||
}
|
}
|
||||||
} else if (st->codec->color_table_id & 0x08) {
|
} else if (st->codec->color_table_id) {
|
||||||
/* if flag bit 3 is set, use the default palette */
|
/* if flag bit 3 is set, use the default palette */
|
||||||
color_count = 1 << color_depth;
|
color_count = 1 << color_depth;
|
||||||
if (color_depth == 2)
|
if (color_depth == 2)
|
||||||
|
|
Loading…
Reference in New Issue