... | ... |
@@ -64,7 +64,7 @@ static int parse_frame(AVCodecParserContext *ctx, const uint8_t *buf, int size) |
64 | 64 |
if (ctx->pts == AV_NOPTS_VALUE) |
65 | 65 |
ctx->pts = s->pts; |
66 | 66 |
s->pts = AV_NOPTS_VALUE; |
67 |
- } else { |
|
67 |
+ } else if (ctx->pts != AV_NOPTS_VALUE) { |
|
68 | 68 |
s->pts = ctx->pts; |
69 | 69 |
ctx->pts = AV_NOPTS_VALUE; |
70 | 70 |
} |