diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2015-10-28 12:20:25 -0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2015-10-28 22:15:36 -0400 |
commit | 63fca9df9c6f236c16a5ac0b60e73cb0e7669b2e (patch) | |
tree | 7b1a862002caf23eb5ff4a057deb9f887a4051e7 /libavcodec | |
parent | 6dc0db6634f45cd1a9af5765c7a16ddf9cb0b341 (diff) | |
download | ffmpeg-63fca9df9c6f236c16a5ac0b60e73cb0e7669b2e.tar.gz |
vp9_parser: don't overwrite cached timestamps with nopts.
Diffstat (limited to 'libavcodec')
-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; } |