diff options
author | Philip Langdale <philipl@overt.org> | 2016-10-15 12:44:32 -0700 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2016-11-02 13:47:57 -0700 |
commit | 0eb836942f5d6ff803e0374156ca21544e926e7c (patch) | |
tree | 625e8788becd1f4bcde865f5f224b2505c40e7cd | |
parent | 13dbf77b8192a75ac365c256a3c2da03cc2617fd (diff) | |
download | ffmpeg-0eb836942f5d6ff803e0374156ca21544e926e7c.tar.gz |
crystalhd: Keep NOPTS_VALUE so we know it's not there.
-rw-r--r-- | libavcodec/crystalhd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c index b68701a7be..4ac138cb2e 100644 --- a/libavcodec/crystalhd.c +++ b/libavcodec/crystalhd.c @@ -848,8 +848,7 @@ static int crystalhd_decode_packet(AVCodecContext *avctx, const AVPacket *avpkt) * avoiding mangling so we need to build a mapping to values * we know will not be mangled. */ - int64_t safe_pts = avpkt->pts == AV_NOPTS_VALUE ? 0 : avpkt->pts; - uint64_t pts = opaque_list_push(priv, safe_pts); + uint64_t pts = opaque_list_push(priv, avpkt->pts); if (!pts) { ret = AVERROR(ENOMEM); goto exit; |