h264_parser: force grabing a new timestamp until a frame start was found
This commit is contained in:
parent
f5ddf45af5
commit
032ad87c13
|
@ -605,6 +605,9 @@ static int h264_parse(AVCodecParserContext *s,
|
|||
} else {
|
||||
next = h264_find_frame_end(p, buf, buf_size, avctx);
|
||||
|
||||
if (next == END_NOT_FOUND && pc->frame_start_found == 0)
|
||||
s->fetch_timestamp = 1;
|
||||
|
||||
if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) {
|
||||
*poutbuf = NULL;
|
||||
*poutbuf_size = 0;
|
||||
|
|
Loading…
Reference in New Issue