Revision 0b98a7b3

View differences:

libavformat/movenc.c
506 506
        } else {
507 507
            if (track->enc->codec_type == CODEC_TYPE_VIDEO) {
508 508
                tag = codec_get_tag(codec_movvideo_tags, track->enc->codec_id);
509
                // if no mac fcc found, try with Microsoft tags
510
                if (!tag) {
509
                if (!tag) { // if no mac fcc found, try with Microsoft tags
511 510
                    tag = codec_get_tag(codec_bmp_tags, track->enc->codec_id);
512
                    if (tag) {
513
                        av_log(s, AV_LOG_INFO, "Warning, using MS style video codec tag, the file may be unplayable!\n");
514
                    }
511
                    if (tag)
512
                        av_log(s, AV_LOG_INFO, "Warning, using MS style video codec tag, "
513
                               "the file may be unplayable!\n");
515 514
                }
516 515
            } else if (track->enc->codec_type == CODEC_TYPE_AUDIO) {
517 516
                tag = codec_get_tag(codec_movaudio_tags, track->enc->codec_id);
518
                // if no mac fcc found, try with Microsoft tags
519
                if (!tag) {
517
                if (!tag) { // if no mac fcc found, try with Microsoft tags
520 518
                    int ms_tag = codec_get_tag(codec_wav_tags, track->enc->codec_id);
521 519
                    if (ms_tag) {
522 520
                        tag = MKTAG('m', 's', ((ms_tag >> 8) & 0xff), (ms_tag & 0xff));
523
                        av_log(s, AV_LOG_INFO, "Warning, using MS style audio codec tag, the file may be unplayable!\n");
521
                        av_log(s, AV_LOG_INFO, "Warning, using MS style audio codec tag, "
522
                               "the file may be unplayable!\n");
524 523
                    }
525 524
                }
526 525
            }

Also available in: Unified diff