mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-25 16:21:13 +00:00
flush remaining data from parser at EOF
Originally committed as revision 3748 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
732ce18eab
commit
f48c0551ca
@ -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++];
|
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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user