Small fix

This commit is contained in:
Nekotekina 2014-08-26 20:45:43 +04:00
parent 5d3a612003
commit d7fd8e3ca6
6 changed files with 26 additions and 14 deletions

View file

@ -35,6 +35,9 @@ AudioDecoder::AudioDecoder(AudioCodecType type, u32 addr, u32 size, u32 func, u3
, ctx(nullptr)
, fmt(nullptr)
{
av_register_all();
avcodec_register_all();
AVCodec* codec = avcodec_find_decoder(AV_CODEC_ID_ATRAC3P);
if (!codec)
{
@ -824,7 +827,4 @@ void cellAdec_init()
REG_FUNC(cellAdec, cellAdecDecodeAu);
REG_FUNC(cellAdec, cellAdecGetPcm);
REG_FUNC(cellAdec, cellAdecGetPcmItem);
av_register_all();
avcodec_register_all();
}