Commit ac6659af authored by Michael Niedermayer's avatar Michael Niedermayer

movenc: fix regression with yuyv caused by c5f23d

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 51211d35
...@@ -907,10 +907,11 @@ static int mov_get_rawvideo_codec_tag(AVFormatContext *s, MOVTrack *track) ...@@ -907,10 +907,11 @@ static int mov_get_rawvideo_codec_tag(AVFormatContext *s, MOVTrack *track)
int i; int i;
for (i = 0; i < FF_ARRAY_ELEMS(mov_pix_fmt_tags); i++) { for (i = 0; i < FF_ARRAY_ELEMS(mov_pix_fmt_tags); i++) {
if (track->enc->codec_tag == mov_pix_fmt_tags[i].tag && track->enc->pix_fmt == mov_pix_fmt_tags[i].pix_fmt) { if (track->enc->pix_fmt == mov_pix_fmt_tags[i].pix_fmt) {
tag = mov_pix_fmt_tags[i].tag; tag = mov_pix_fmt_tags[i].tag;
track->enc->bits_per_coded_sample = mov_pix_fmt_tags[i].bps; track->enc->bits_per_coded_sample = mov_pix_fmt_tags[i].bps;
break; if (track->enc->codec_tag == mov_pix_fmt_tags[i].tag)
break;
} }
} }
......
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