Commit f48c0551 authored by Michael Niedermayer's avatar Michael Niedermayer

flush remaining data from parser at EOF

Originally committed as revision 3748 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 732ce18e
...@@ -187,7 +187,12 @@ int ff_combine_frame(ParseContext *pc, int next, uint8_t **buf, int *buf_size) ...@@ -187,7 +187,12 @@ int ff_combine_frame(ParseContext *pc, int next, uint8_t **buf, int *buf_size)
for(; pc->overread>0; pc->overread--){ for(; pc->overread>0; pc->overread--){
pc->buffer[pc->index++]= pc->buffer[pc->overread_index++]; 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; pc->last_index= pc->index;
/* copy into buffer end return */ /* copy into buffer end return */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment