1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

lavc/libvorbisdec: do not return empty frames.

Some parts of the code have been known to react badly to
empty frames; they should not, but there is no need to
take risks.
This commit is contained in:
Nicolas George 2013-09-03 20:05:06 +02:00
parent d5b58f678d
commit d7ccfe58e3

View File

@ -171,7 +171,7 @@ static int oggvorbis_decode_frame(AVCodecContext *avccontext, void *data,
}
frame->nb_samples = total_samples;
*got_frame_ptr = 1;
*got_frame_ptr = total_samples > 0;
return avpkt->size;
}