diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2014-09-01 13:39:09 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-04 20:14:59 +0300 |
commit | de198fc00353e4dd389a920763e10581c2d4fb2b (patch) | |
tree | c082db7788c095fc9a3815e36ebd3da413c5d3cc | |
parent | 3e5148d4711cef3f34e7637bf6ec92f89b364e54 (diff) |
h264_parser: force grabing a new timestamp until a frame start was found
-rw-r--r-- | libavcodec/h264_parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c index 2564c6c6c3..9d30ba736c 100644 --- a/libavcodec/h264_parser.c +++ b/libavcodec/h264_parser.c @@ -582,6 +582,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; |