Commit ae8396a9 authored by michael's avatar michael

flush remaining data from parser at EOF


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3748 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 100ab3a6
......@@ -188,6 +188,11 @@ int ff_combine_frame(ParseContext *pc, int next, uint8_t **buf, int *buf_size)
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 */
......
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