}
#include "audio_consumer.h"
#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
# define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000
#endif
class Decoder
{
public:
return false;
if (avcodec_open(m_codec_ctx, codec) < 0) {
if (avcodec_open2(m_codec_ctx, codec, NULL) < 0) {
m_error = "Couldn't open the codec.";