Skip to content

Commit

Permalink
h264_parser: force grabing a new timestamp until a frame start was found
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel authored and afedchin committed Sep 18, 2017
1 parent b03ca83 commit 36b6ed8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libavcodec/h264_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,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;
Expand Down

0 comments on commit 36b6ed8

Please sign in to comment.