Browse code

vp9_parser: don't overwrite cached timestamps with nopts.

Ronald S. Bultje authored on 2015/10/29 01:20:25
Showing 1 changed files
... ...
@@ -64,7 +64,7 @@ static int parse_frame(AVCodecParserContext *ctx, const uint8_t *buf, int size)
64 64
         if (ctx->pts == AV_NOPTS_VALUE)
65 65
             ctx->pts = s->pts;
66 66
         s->pts = AV_NOPTS_VALUE;
67
-    } else {
67
+    } else if (ctx->pts != AV_NOPTS_VALUE) {
68 68
         s->pts = ctx->pts;
69 69
         ctx->pts = AV_NOPTS_VALUE;
70 70
     }