1
0
Fork 0

h264_parser: force grabing a new timestamp until a frame start was found

This commit is contained in:
Hendrik Leppkes 2014-09-01 11:39:09 +02:00
parent f5ddf45af5
commit 032ad87c13
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 3 additions and 0 deletions

View File

@ -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;