Mercurial > libavformat.hg
comparison movenc.c @ 4830:8fcb2c0d6362 libavformat
cosmetics, add empty line and remove useless braces
author | bcoudurier |
---|---|
date | Tue, 07 Apr 2009 22:31:17 +0000 |
parents | e3d1c92193a7 |
children | 1c7db935f752 |
comparison
equal
deleted
inserted
replaced
4829:e3d1c92193a7 | 4830:8fcb2c0d6362 |
---|---|
604 // keep original tag for subs, ipod supports both formats | 604 // keep original tag for subs, ipod supports both formats |
605 if (!(track->enc->codec_type == CODEC_TYPE_SUBTITLE && | 605 if (!(track->enc->codec_type == CODEC_TYPE_SUBTITLE && |
606 (tag == MKTAG('t','x','3','g') || | 606 (tag == MKTAG('t','x','3','g') || |
607 tag == MKTAG('t','e','x','t')))) | 607 tag == MKTAG('t','e','x','t')))) |
608 tag = codec_get_tag(codec_ipod_tags, track->enc->codec_id); | 608 tag = codec_get_tag(codec_ipod_tags, track->enc->codec_id); |
609 | |
609 if (!match_ext(s->filename, "m4a") && !match_ext(s->filename, "m4v")) | 610 if (!match_ext(s->filename, "m4a") && !match_ext(s->filename, "m4v")) |
610 av_log(s, AV_LOG_WARNING, "Warning, extension is not .m4a nor .m4v " | 611 av_log(s, AV_LOG_WARNING, "Warning, extension is not .m4a nor .m4v " |
611 "Quicktime/Ipod might not play the file\n"); | 612 "Quicktime/Ipod might not play the file\n"); |
612 | 613 |
613 return tag; | 614 return tag; |
649 | 650 |
650 if (!tag || (track->enc->strict_std_compliance >= FF_COMPLIANCE_NORMAL && | 651 if (!tag || (track->enc->strict_std_compliance >= FF_COMPLIANCE_NORMAL && |
651 (tag == MKTAG('d','v','c','p') || | 652 (tag == MKTAG('d','v','c','p') || |
652 track->enc->codec_id == CODEC_ID_RAWVIDEO || | 653 track->enc->codec_id == CODEC_ID_RAWVIDEO || |
653 av_get_bits_per_sample(track->enc->codec_id)))) { // pcm audio | 654 av_get_bits_per_sample(track->enc->codec_id)))) { // pcm audio |
654 if (track->enc->codec_id == CODEC_ID_DVVIDEO) { | 655 if (track->enc->codec_id == CODEC_ID_DVVIDEO) |
655 tag = mov_get_dv_codec_tag(s, track); | 656 tag = mov_get_dv_codec_tag(s, track); |
656 } else if (track->enc->codec_id == CODEC_ID_RAWVIDEO) { | 657 else if (track->enc->codec_id == CODEC_ID_RAWVIDEO) |
657 tag = mov_get_rawvideo_codec_tag(s, track); | 658 tag = mov_get_rawvideo_codec_tag(s, track); |
658 } else { | 659 else if (track->enc->codec_type == CODEC_TYPE_VIDEO) { |
659 if (track->enc->codec_type == CODEC_TYPE_VIDEO) { | |
660 tag = codec_get_tag(codec_movvideo_tags, track->enc->codec_id); | 660 tag = codec_get_tag(codec_movvideo_tags, track->enc->codec_id); |
661 if (!tag) { // if no mac fcc found, try with Microsoft tags | 661 if (!tag) { // if no mac fcc found, try with Microsoft tags |
662 tag = codec_get_tag(codec_bmp_tags, track->enc->codec_id); | 662 tag = codec_get_tag(codec_bmp_tags, track->enc->codec_id); |
663 if (tag) | 663 if (tag) |
664 av_log(s, AV_LOG_INFO, "Warning, using MS style video codec tag, " | 664 av_log(s, AV_LOG_INFO, "Warning, using MS style video codec tag, " |
672 tag = MKTAG('m', 's', ((ms_tag >> 8) & 0xff), (ms_tag & 0xff)); | 672 tag = MKTAG('m', 's', ((ms_tag >> 8) & 0xff), (ms_tag & 0xff)); |
673 av_log(s, AV_LOG_INFO, "Warning, using MS style audio codec tag, " | 673 av_log(s, AV_LOG_INFO, "Warning, using MS style audio codec tag, " |
674 "the file may be unplayable!\n"); | 674 "the file may be unplayable!\n"); |
675 } | 675 } |
676 } | 676 } |
677 } else if (track->enc->codec_type == CODEC_TYPE_SUBTITLE) { | 677 } else if (track->enc->codec_type == CODEC_TYPE_SUBTITLE) |
678 tag = codec_get_tag(ff_codec_movsubtitle_tags, track->enc->codec_id); | 678 tag = codec_get_tag(ff_codec_movsubtitle_tags, track->enc->codec_id); |
679 } | |
680 } | |
681 } | 679 } |
682 | 680 |
683 return tag; | 681 return tag; |
684 } | 682 } |
685 | 683 |