githubのコードからのfolk
Revision | 47edf66b3c2b8d9726f845a1e7b5c8d443fae155 (tree) |
---|---|
Time | 2011-02-26 02:50:18 |
Author | jstebbins <jstebbins@b64f...> |
Commiter | jstebbins |
fix crash with bd lpcm audio decoding
git-svn-id: svn://localhost/HandBrake/trunk@3807 b64f7644-9d1e-0410-96f1-a4d463321fa5
@@ -452,6 +452,7 @@ static int decavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in, | ||
452 | 452 | len = av_parser_parse2( pv->parser, pv->context, |
453 | 453 | &parser_output_buffer, &parser_output_buffer_len, |
454 | 454 | in->data + pos, in->size - pos, cur, cur, 0 ); |
455 | + cur = pv->parser->pts; | |
455 | 456 | } |
456 | 457 | else |
457 | 458 | { |
@@ -472,7 +473,7 @@ static int decavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in, | ||
472 | 473 | pv->duration = 90000. / |
473 | 474 | (double)( pv->context->sample_rate * pv->context->channels ); |
474 | 475 | } |
475 | - decodeAudio( w->audio, pv, parser_output_buffer, parser_output_buffer_len, pv->parser->pts ); | |
476 | + decodeAudio( w->audio, pv, parser_output_buffer, parser_output_buffer_len, cur ); | |
476 | 477 | } |
477 | 478 | } |
478 | 479 | writeAudioFifos( w ); |