[FFmpeg-devel] [PATCH 14/19] 8svx: flushing is done with empty packets, not NULL.

Nicolas George nicolas.george at normalesup.org
Sun Jul 29 15:57:32 CEST 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavcodec/8svx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c
index c1acc60..3ebc330 100644
--- a/libavcodec/8svx.c
+++ b/libavcodec/8svx.c
@@ -110,7 +110,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data,
     uint8_t *src, *dst;
 
     /* decode and interleave the first packet */
-    if (!esc->samples && avpkt) {
+    if (!esc->samples && avpkt && avpkt->size) {
         uint8_t *deinterleaved_samples, *p = NULL;
 
         esc->samples_size = !esc->table ?
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list