Browse Source

vp9_parser: don't overwrite cached timestamps with nopts.

tags/n3.0
Ronald S. Bultje 10 years ago
parent
commit
63fca9df9c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vp9_parser.c

+ 1
- 1
libavcodec/vp9_parser.c View File

@@ -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…
Cancel
Save