Skip to content

Commit 5f2a237

Browse files
read 5760 bytes for wav audio packets
1 parent c58ebe7 commit 5f2a237

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/AvTranscoder/AvInputStream.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ AvInputStream::AvInputStream( InputFile& inputFile, const size_t streamIndex )
3636
, m_streamIndex( streamIndex )
3737
, m_bufferized( false )
3838
{
39+
if( m_inputFile->getFormatContext().streams[m_streamIndex]->codec->codec_type == AVMEDIA_TYPE_AUDIO )
40+
m_inputFile->getFormatContext().streams[m_streamIndex]->codec->block_align = 5760;
3941
}
4042

4143
AvInputStream::~AvInputStream( )

0 commit comments

Comments
 (0)