Skip to content

Commit

Permalink
increase the packet size to a multiple of max_packet_size that fits i…
Browse files Browse the repository at this point in the history
…n the buffer size. Fixes hdhomerun playback. Thanks Elupus.

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@33504 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
theuni committed Sep 3, 2010
1 parent 33d97cc commit c4dee3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
Expand Up @@ -290,6 +290,8 @@ bool CDVDDemuxFFmpeg::Open(CDVDInputStream* pInput)
unsigned char* buffer = (unsigned char*)m_dllAvUtil.av_malloc(FFMPEG_FILE_BUFFER_SIZE);
m_ioContext = m_dllAvFormat.av_alloc_put_byte(buffer, FFMPEG_FILE_BUFFER_SIZE, 0, m_pInput, dvd_file_read, NULL, dvd_file_seek);
m_ioContext->max_packet_size = m_pInput->GetBlockSize();
if(m_ioContext->max_packet_size)
m_ioContext->max_packet_size *= FFMPEG_FILE_BUFFER_SIZE / m_ioContext->max_packet_size;

if (m_pInput->IsStreamType(DVDSTREAM_TYPE_DVD))
{
Expand Down

0 comments on commit c4dee3f

Please sign in to comment.