Permalink
Browse files

Fix MythMusic playback after the ffmpeg resync

Signed-off-by: Paul Harrison <mythtv@sky.com>
  • Loading branch information...
1 parent 4132132 commit 7683a3ed7fd2487751a75d88536b6d208a32374b @jyavenard jyavenard committed with paul-h Apr 4, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 mythplugins/mythmusic/mythmusic/avfdecoder.cpp
@@ -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;

0 comments on commit 7683a3e

Please sign in to comment.