From 63fca9df9c6f236c16a5ac0b60e73cb0e7669b2e Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 28 Oct 2015 12:20:25 -0400 Subject: [PATCH] vp9_parser: don't overwrite cached timestamps with nopts. --- libavcodec/vp9_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vp9_parser.c b/libavcodec/vp9_parser.c index 0437097391..6713850d2b 100644 --- a/libavcodec/vp9_parser.c +++ b/libavcodec/vp9_parser.c @@ -64,7 +64,7 @@ static int parse_frame(AVCodecParserContext *ctx, const uint8_t *buf, int size) if (ctx->pts == AV_NOPTS_VALUE) ctx->pts = s->pts; s->pts = AV_NOPTS_VALUE; - } else { + } else if (ctx->pts != AV_NOPTS_VALUE) { s->pts = ctx->pts; ctx->pts = AV_NOPTS_VALUE; }