changeset 5814:14a9ceb162d2 libavcodec

Prevent infinite loop when buffer holds SEQ_END_CODE only. Fix for r9870 Patch by Stefan Lucke <stefan <at> lucke.in-berlin.de> Subject: API breakage by r9870 Date: 2007-10-05 11:06:47 GMT http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/57467
author ramiro
date Sat, 13 Oct 2007 01:34:00 +0000
parents bc467895b8c9
children fb293531e983
files mpeg12.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Fri Oct 12 09:38:34 2007 +0000
+++ b/mpeg12.c	Sat Oct 13 01:34:00 2007 +0000
@@ -2239,7 +2239,7 @@
 
             *data_size = sizeof(AVFrame);
         }
-        return 0;
+        return buf_size;
     }
 
     if(s2->flags&CODEC_FLAG_TRUNCATED){