[FFmpeg-cvslog] crystalhd: Keep NOPTS_VALUE so we know it's not there.
Philip Langdale
git at videolan.org
Wed Nov 2 22:50:41 EET 2016
ffmpeg | branch: master | Philip Langdale <philipl at overt.org> | Sat Oct 15 12:44:32 2016 -0700| [0eb836942f5d6ff803e0374156ca21544e926e7c] | committer: Philip Langdale
crystalhd: Keep NOPTS_VALUE so we know it's not there.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0eb836942f5d6ff803e0374156ca21544e926e7c
---
libavcodec/crystalhd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/crystalhd.c b/libavcodec/crystalhd.c
index b68701a..4ac138c 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;
More information about the ffmpeg-cvslog
mailing list