vp9_parser: don't overwrite cached timestamps with nopts.
This commit is contained in:
parent
6dc0db6634
commit
63fca9df9c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user