summaryrefslogtreecommitdiff
path: root/libavcodec/vp9_parser.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-10-28 12:20:25 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2015-10-28 22:15:36 -0400
commit63fca9df9c6f236c16a5ac0b60e73cb0e7669b2e (patch)
tree7b1a862002caf23eb5ff4a057deb9f887a4051e7 /libavcodec/vp9_parser.c
parent6dc0db6634f45cd1a9af5765c7a16ddf9cb0b341 (diff)
vp9_parser: don't overwrite cached timestamps with nopts.
Diffstat (limited to 'libavcodec/vp9_parser.c')
-rw-r--r--libavcodec/vp9_parser.c2
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;
}