From d7ccfe58e3a31d10286cb6ef1ab6cf5b7fa455fe Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Tue, 3 Sep 2013 20:05:06 +0200 Subject: [PATCH] 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. --- libavcodec/libvorbisdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libvorbisdec.c b/libavcodec/libvorbisdec.c index c4142cd959..682265691d 100644 --- a/libavcodec/libvorbisdec.c +++ b/libavcodec/libvorbisdec.c @@ -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; }