vp9_parser: don't overwrite cached timestamps with nopts.

This commit is contained in:
Ronald S. Bultje 2015-10-28 12:20:25 -04:00
parent 6dc0db6634
commit 63fca9df9c

View File

@ -64,7 +64,7 @@ static int parse_frame(AVCodecParserContext *ctx, const uint8_t *buf, int size)
if (ctx->pts == AV_NOPTS_VALUE) if (ctx->pts == AV_NOPTS_VALUE)
ctx->pts = s->pts; ctx->pts = s->pts;
s->pts = AV_NOPTS_VALUE; s->pts = AV_NOPTS_VALUE;
} else { } else if (ctx->pts != AV_NOPTS_VALUE) {
s->pts = ctx->pts; s->pts = ctx->pts;
ctx->pts = AV_NOPTS_VALUE; ctx->pts = AV_NOPTS_VALUE;
} }