changeset 2386:8d1983254e28 libavcodec

flush remaining data from parser at EOF
author michael
date Sun, 12 Dec 2004 14:19:54 +0000
parents 4605a8b188c3
children f45248df9796
files parser.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/parser.c	Sat Dec 11 18:33:18 2004 +0000
+++ b/parser.c	Sun Dec 12 14:19:54 2004 +0000
@@ -187,7 +187,12 @@
     for(; pc->overread>0; pc->overread--){
         pc->buffer[pc->index++]= pc->buffer[pc->overread_index++];
     }
-    
+
+    /* flush remaining if EOF */
+    if(!*buf_size && next == END_NOT_FOUND){
+        next= 0;
+    }
+
     pc->last_index= pc->index;
 
     /* copy into buffer end return */