Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 7b38c145bab520e8d1a6eb9b1d3705e3c3fb7c41 Mon Sep 17 00:00:00 2001
- From: Hendrik Leppkes <h.leppkes@gmail.com>
- Date: Mon, 1 Sep 2014 11:39:09 +0200
- Subject: [PATCH] h264_parser: force grabing a new timestamp until a frame
- start was found
- ---
- libavcodec/h264_parser.c | 3 +++
- 1 file changed, 3 insertions(+)
- diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
- index 5f9a9c46ef..b30d3d7d4b 100644
- --- a/libavcodec/h264_parser.c
- +++ b/libavcodec/h264_parser.c
- @@ -592,6 +592,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;
- --
- 2.18.0
Add Comment
Please, Sign In to add comment