[FFmpeg-cvslog] vp9_parser: don't overwrite cached timestamps with nopts.
Ronald S. Bultje
git at videolan.org
Thu Oct 29 03:15:57 CET 2015
ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Wed Oct 28 12:20:25 2015 -0400| [63fca9df9c6f236c16a5ac0b60e73cb0e7669b2e] | committer: Ronald S. Bultje
vp9_parser: don't overwrite cached timestamps with nopts.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=63fca9df9c6f236c16a5ac0b60e73cb0e7669b2e
---
libavcodec/vp9_parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vp9_parser.c b/libavcodec/vp9_parser.c
index 0437097..6713850 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;
}
More information about the ffmpeg-cvslog
mailing list