summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-04-24 03:12:23 +0000
committerjstebbins <[email protected]>2011-04-24 03:12:23 +0000
commitf4e7ce61efc03ee84672ea3f68a36b312fc523a4 (patch)
treeb4ca7b9dbaf85eb0669391ee93936ff7cf768e24
parent798542e595c9c26201247d58e3935f4bbcd9fd1c (diff)
fix stall due due to propagation of incorrect audio timestamp
Was passing AV_NOPTS_VALUE that is generated by libav. Needed to translate to -1 which is what we use to designate invalid timestamps. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3955 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/decavcodec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index 3bb0fe087..9efa3da8f 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -445,6 +445,8 @@ static int decavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
&parser_output_buffer, &parser_output_buffer_len,
in->data + pos, in->size - pos, cur, cur, 0 );
cur = pv->parser->pts;
+ if ( cur == AV_NOPTS_VALUE )
+ cur = -1;
}
else
{