diff options
Diffstat (limited to 'libavcodec/vp9_parser.c')
-rw-r--r-- | libavcodec/vp9_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |