[FFmpeg-cvslog] r11656 - trunk/libavformat/movenc.c
bcoudurier
subversion
Mon Jan 28 19:35:12 CET 2008
Author: bcoudurier
Date: Mon Jan 28 19:35:12 2008
New Revision: 11656
Log:
cosmetics, split long lines, remove useless braces, merge comments and if
Modified:
trunk/libavformat/movenc.c
Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c (original)
+++ trunk/libavformat/movenc.c Mon Jan 28 19:35:12 2008
@@ -506,21 +506,20 @@ static int mov_find_codec_tag(AVFormatCo
} else {
if (track->enc->codec_type == CODEC_TYPE_VIDEO) {
tag = codec_get_tag(codec_movvideo_tags, track->enc->codec_id);
- // if no mac fcc found, try with Microsoft tags
- if (!tag) {
+ if (!tag) { // if no mac fcc found, try with Microsoft tags
tag = codec_get_tag(codec_bmp_tags, track->enc->codec_id);
- if (tag) {
- av_log(s, AV_LOG_INFO, "Warning, using MS style video codec tag, the file may be unplayable!\n");
- }
+ if (tag)
+ av_log(s, AV_LOG_INFO, "Warning, using MS style video codec tag, "
+ "the file may be unplayable!\n");
}
} else if (track->enc->codec_type == CODEC_TYPE_AUDIO) {
tag = codec_get_tag(codec_movaudio_tags, track->enc->codec_id);
- // if no mac fcc found, try with Microsoft tags
- if (!tag) {
+ if (!tag) { // if no mac fcc found, try with Microsoft tags
int ms_tag = codec_get_tag(codec_wav_tags, track->enc->codec_id);
if (ms_tag) {
tag = MKTAG('m', 's', ((ms_tag >> 8) & 0xff), (ms_tag & 0xff));
- av_log(s, AV_LOG_INFO, "Warning, using MS style audio codec tag, the file may be unplayable!\n");
+ av_log(s, AV_LOG_INFO, "Warning, using MS style audio codec tag, "
+ "the file may be unplayable!\n");
}
}
}
More information about the ffmpeg-cvslog
mailing list