Guest User

Untitled

a guest
Oct 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. From 7b38c145bab520e8d1a6eb9b1d3705e3c3fb7c41 Mon Sep 17 00:00:00 2001
  2. From: Hendrik Leppkes <h.leppkes@gmail.com>
  3. Date: Mon, 1 Sep 2014 11:39:09 +0200
  4. Subject: [PATCH] h264_parser: force grabing a new timestamp until a frame
  5. start was found
  6.  
  7. ---
  8. libavcodec/h264_parser.c | 3 +++
  9. 1 file changed, 3 insertions(+)
  10.  
  11. diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
  12. index 5f9a9c46ef..b30d3d7d4b 100644
  13. --- a/libavcodec/h264_parser.c
  14. +++ b/libavcodec/h264_parser.c
  15. @@ -592,6 +592,9 @@ static int h264_parse(AVCodecParserContext *s,
  16. } else {
  17. next = h264_find_frame_end(p, buf, buf_size, avctx);
  18.  
  19. + if (next == END_NOT_FOUND && pc->frame_start_found == 0)
  20. + s->fetch_timestamp = 1;
  21. +
  22. if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) {
  23. *poutbuf = NULL;
  24. *poutbuf_size = 0;
  25. --
  26. 2.18.0
Add Comment
Please, Sign In to add comment