Commit 4377dc31 authored by bcoudurier's avatar bcoudurier

check codec frame size directly and only for audio

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7280 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c625fb03
......@@ -1518,10 +1518,10 @@ static int mov_write_header(AVFormatContext *s)
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;
}
}
}
......
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