Skip to content

Commit

Permalink
Fix MythMusic playback after the ffmpeg resync
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Harrison <mythtv@sky.com>
  • Loading branch information
jyavenard authored and paul-h committed Apr 4, 2013
1 parent 4132132 commit 7683a3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythplugins/mythmusic/mythmusic/avfdecoder.cpp
Expand Up @@ -261,7 +261,8 @@ bool avfDecoder::initialize()
return false;
}

switch (m_audioDec->sample_fmt)
AVSampleFormat format_pack = av_get_packed_sample_fmt(m_audioDec->sample_fmt);
switch (format_pack)
{
case AV_SAMPLE_FMT_U8: m_sampleFmt = FORMAT_U8; break;
case AV_SAMPLE_FMT_S16: m_sampleFmt = FORMAT_S16; break;
Expand Down

0 comments on commit 7683a3e

Please sign in to comment.