summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-02-25 17:50:18 +0000
committerjstebbins <[email protected]>2011-02-25 17:50:18 +0000
commit53f02c5320d04bd46aed8fb1c1624b8d96ba0e7c (patch)
tree35b944142c14d1b7fe0b12f8cd05ad04e14cca06
parenta8b289e98c9b83438605d0453d5e5dddaaaf5679 (diff)
fix crash with bd lpcm audio decoding
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3807 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/decavcodec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index 612991c79..df5575d98 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -452,6 +452,7 @@ static int decavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
len = av_parser_parse2( pv->parser, pv->context,
&parser_output_buffer, &parser_output_buffer_len,
in->data + pos, in->size - pos, cur, cur, 0 );
+ cur = pv->parser->pts;
}
else
{
@@ -472,7 +473,7 @@ static int decavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
pv->duration = 90000. /
(double)( pv->context->sample_rate * pv->context->channels );
}
- decodeAudio( w->audio, pv, parser_output_buffer, parser_output_buffer_len, pv->parser->pts );
+ decodeAudio( w->audio, pv, parser_output_buffer, parser_output_buffer_len, cur );
}
}
writeAudioFifos( w );