• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

githubのコードからのfolk


Commit MetaInfo

Revision47edf66b3c2b8d9726f845a1e7b5c8d443fae155 (tree)
Time2011-02-26 02:50:18
Authorjstebbins <jstebbins@b64f...>
Commiterjstebbins

Log Message

fix crash with bd lpcm audio decoding

git-svn-id: svn://localhost/HandBrake/trunk@3807 b64f7644-9d1e-0410-96f1-a4d463321fa5

Change Summary

Incremental Difference

--- 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,
452452 len = av_parser_parse2( pv->parser, pv->context,
453453 &parser_output_buffer, &parser_output_buffer_len,
454454 in->data + pos, in->size - pos, cur, cur, 0 );
455+ cur = pv->parser->pts;
455456 }
456457 else
457458 {
@@ -472,7 +473,7 @@ static int decavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
472473 pv->duration = 90000. /
473474 (double)( pv->context->sample_rate * pv->context->channels );
474475 }
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 );
476477 }
477478 }
478479 writeAudioFifos( w );