Commit 731252a8 authored by michael's avatar michael

Prevent duration calculation code from generating random durations for

vorbis in ogg.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13958 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 47066a4d
......@@ -541,6 +541,9 @@ static int get_audio_frame_size(AVCodecContext *enc, int size)
if (enc->frame_size <= 1) {
int bits_per_sample = av_get_bits_per_sample(enc->codec_id);
if(enc->codec_id == CODEC_ID_VORBIS)
return -1;
if (bits_per_sample) {
if (enc->channels == 0)
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