changeset 2899:d9a9ff37c5ab libavformat

proper check for valid pva_pts
author ivo
date Sat, 05 Jan 2008 22:28:42 +0000
parents 32895d361262
children a28c002dd2b4
files pva.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pva.c	Sat Jan 05 22:27:49 2008 +0000
+++ b/pva.c	Sat Jan 05 22:28:42 2008 +0000
@@ -144,7 +144,7 @@
         return AVERROR(EIO);
 
     pkt->stream_index = streamid - 1;
-    if (pva_pts)
+    if (pva_pts != AV_NOPTS_VALUE)
         pkt->pts = pva_pts;
 
     return ret;