X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_decoder.h;h=4e5445f673acfcd53ebb573f1cf23cf12c644ab4;hb=f29219ed06d27dcae5e18b8b9c52dcf24554f188;hp=d66acad48fee72a243b56900a6c7bb812ec4d685;hpb=bb767c7e338414beee132af3e96829c1448e214b;p=dcpomatic.git diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index d66acad48..4e5445f67 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -62,6 +62,7 @@ public: int audio_channels () const; int audio_sample_rate () const; AVSampleFormat audio_sample_format () const; + int64_t audio_channel_layout () const; private: @@ -78,13 +79,13 @@ private: AVFormatContext* _format_context; int _video_stream; - int _audio_stream; + int _audio_stream; ///< may be < 0 if there is no audio AVFrame* _frame; AVCodecContext* _video_codec_context; AVCodec* _video_codec; - AVCodecContext* _audio_codec_context; - AVCodec* _audio_codec; + AVCodecContext* _audio_codec_context; ///< may be 0 if there is no audio + AVCodec* _audio_codec; ///< may be 0 if there is no audio AVPacket _packet; };