Skip to content

Commit 98c7d30

Browse files
committed
Merge commit 'be089af38f65dc8b1fe3564f98020fc815577edb'
* commit 'be089af38f65dc8b1fe3564f98020fc815577edb': mov: Rely on box type rather than file type for colr atom Conflicts: libavformat/mov.c See: 0276b95 Merged-by: Michael Niedermayer <[email protected]>
2 parents 9fd3d9a + be089af commit 98c7d30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libavformat/mov.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ static int mov_read_colr(MOVContext *c, AVIOContext *pb, MOVAtom atom)
10011001
av_dlog(c->fc, "%s: pri %d trc %d matrix %d",
10021002
color_parameter_type, color_primaries, color_trc, color_matrix);
10031003

1004-
if (strncmp(color_parameter_type, "nclx", 4) == 0) {
1004+
if (!strncmp(color_parameter_type, "nclx", 4)) {
10051005
uint8_t color_range = avio_r8(pb) >> 7;
10061006
av_dlog(c->fc, " full %"PRIu8"", color_range);
10071007
if (color_range)
@@ -1021,7 +1021,7 @@ static int mov_read_colr(MOVContext *c, AVIOContext *pb, MOVAtom atom)
10211021
st->codec->color_primaries = color_primaries;
10221022
st->codec->color_trc = color_trc;
10231023
st->codec->colorspace = color_matrix;
1024-
} else {
1024+
} else if (!strncmp(color_parameter_type, "nclc", 4)) {
10251025
/* color primaries, Table 4-4 */
10261026
switch (color_primaries) {
10271027
case 1: st->codec->color_primaries = AVCOL_PRI_BT709; break;

0 commit comments

Comments
 (0)