Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. diff --git a/mythplugins/mythmusic/mythmusic/avfdecoder.cpp b/mythplugins/mythmusic/mythmusic/avfdecoder.cpp
  2. index 9b40b6c..9e07f9d 100644
  3. --- a/mythplugins/mythmusic/mythmusic/avfdecoder.cpp
  4. +++ b/mythplugins/mythmusic/mythmusic/avfdecoder.cpp
  5. @@ -261,7 +261,8 @@ bool avfDecoder::initialize()
  6. return false;
  7. }
  8.  
  9. - switch (m_audioDec->sample_fmt)
  10. + AVSampleFormat format_pack = av_get_packed_sample_fmt(m_audioDec->sample_fmt);
  11. + switch (format_pack)
  12. {
  13. case AV_SAMPLE_FMT_U8: m_sampleFmt = FORMAT_U8; break;
  14. case AV_SAMPLE_FMT_S16: m_sampleFmt = FORMAT_S16; break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement