Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/mythplugins/mythmusic/mythmusic/avfdecoder.cpp b/mythplugins/mythmusic/mythmusic/avfdecoder.cpp
- index 9b40b6c..9e07f9d 100644
- --- a/mythplugins/mythmusic/mythmusic/avfdecoder.cpp
- +++ b/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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement