Commit 4393ca2b authored by cehoyos's avatar cehoyos

Force codec_tag I420 for Quicktime Planar Y'CbCr 8-bit 4:2:0 raw codec,

because YV12 triggers an UV swap in rawdec.c, fixes issue 1687.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21436 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f3cddc3d
...@@ -939,6 +939,9 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom) ...@@ -939,6 +939,9 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
PUT_UTF8(codec_name[i+1], tmp, st->codec->codec_name[pos++] = tmp;) PUT_UTF8(codec_name[i+1], tmp, st->codec->codec_name[pos++] = tmp;)
} }
st->codec->codec_name[pos] = 0; st->codec->codec_name[pos] = 0;
/* codec_tag YV12 triggers an UV swap in rawdec.c */
if (!memcmp(st->codec->codec_name, "Planar Y'CbCr 8-bit 4:2:0", 25))
st->codec->codec_tag=MKTAG('I', '4', '2', '0');
} }
st->codec->bits_per_coded_sample = get_be16(pb); /* depth */ st->codec->bits_per_coded_sample = get_be16(pb); /* depth */
......
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