[Ffmpeg-cvslog] r7280 - trunk/libavformat/movenc.c
bcoudurier
subversion
Mon Dec 11 14:30:37 CET 2006
Author: bcoudurier
Date: Mon Dec 11 14:30:37 2006
New Revision: 7280
Modified:
trunk/libavformat/movenc.c
Log:
check codec frame size directly and only for audio
Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c (original)
+++ trunk/libavformat/movenc.c Mon Dec 11 14:30:37 2006
@@ -1518,10 +1518,10 @@
default:
track->sampleSize = (av_get_bits_per_sample(st->codec->codec_id) >> 3) * st->codec->channels;
}
- }
- if (!track->sampleDuration) {
- av_log(s, AV_LOG_ERROR, "track %d: sample duration is not set\n", i);
- return -1;
+ if (!st->codec->frame_size) {
+ av_log(s, AV_LOG_ERROR, "track %d: codec frame size is not set\n", i);
+ return -1;
+ }
}
}
More information about the ffmpeg-cvslog
mailing list