Skip to content

Commit

Permalink
DVDAudioCodecPassthrough: Set samplerate when creating StreamInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
fritsch authored and FernetMenta committed Nov 23, 2015
1 parent bed21e3 commit 7b4048b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,22 @@ bool CDVDAudioCodecPassthrough::Open(CDVDStreamInfo &hints, CDVDCodecOptions &op
{
case AV_CODEC_ID_AC3:
format.m_streamInfo.m_type = CAEStreamInfo::STREAM_TYPE_AC3;
format.m_streamInfo.m_sampleRate = hints.samplerate;
break;

case AV_CODEC_ID_EAC3:
format.m_streamInfo.m_type = CAEStreamInfo::STREAM_TYPE_EAC3;
format.m_streamInfo.m_sampleRate = hints.samplerate;
break;

case AV_CODEC_ID_DTS:
format.m_streamInfo.m_type = CAEStreamInfo::STREAM_TYPE_DTSHD;
format.m_streamInfo.m_sampleRate = hints.samplerate;
break;

case AV_CODEC_ID_TRUEHD:
format.m_streamInfo.m_type = CAEStreamInfo::STREAM_TYPE_TRUEHD;
format.m_streamInfo.m_sampleRate = hints.samplerate;
break;

default:
Expand Down

0 comments on commit 7b4048b

Please sign in to comment.