[FFmpeg-devel] [PATCH] lavc/libvorbisdec: do not return empty frames.
Nicolas George
nicolas.george at normalesup.org
Tue Sep 3 20:08:28 CEST 2013
Some parts of the code have been known to react badly to
empty frames; they should, but there is no need to take risks.
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
libavcodec/libvorbisdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libvorbisdec.c b/libavcodec/libvorbisdec.c
index c4142cd..6822656 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;
}
--
1.8.4.rc3
More information about the ffmpeg-devel
mailing list