diff options
author | Joakim Plate <elupus@ecce.se> | 2013-06-26 22:11:09 +0200 |
---|---|---|
committer | Joakim Plate <elupus@ecce.se> | 2013-08-01 16:59:05 +0200 |
commit | 48b9b96d35f7da9f4a565d88162d08bdbab96a99 (patch) | |
tree | ba87fdb2fb105ba441c9d2d8cf990f0a50e3d9d0 /lib/DllAvCodec.h | |
parent | 4eb82f66384cb20165a156dfdd8244fb65f8c906 (diff) |
dvdplayer: look for stereo_mode metadata in frames to update stereo mode
Diffstat (limited to 'lib/DllAvCodec.h')
-rw-r--r-- | lib/DllAvCodec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/DllAvCodec.h b/lib/DllAvCodec.h index a71f9cfac3..d1360608c1 100644 --- a/lib/DllAvCodec.h +++ b/lib/DllAvCodec.h @@ -98,6 +98,7 @@ public: virtual int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels, enum AVSampleFormat sample_fmt, const uint8_t *buf, int buf_size, int align) = 0; virtual void avcodec_free_frame(AVFrame **frame)=0; virtual int av_codec_is_decoder(const AVCodec *codec)=0; + virtual AVDictionary* av_frame_get_metadata(const AVFrame* frame)=0; }; #if (defined USE_EXTERNAL_FFMPEG) || (defined TARGET_DARWIN) @@ -167,6 +168,7 @@ public: virtual int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels, enum AVSampleFormat sample_fmt, const uint8_t *buf, int buf_size, int align) { return ::avcodec_fill_audio_frame(frame, nb_channels, sample_fmt, buf, buf_size, align); } virtual void avcodec_free_frame(AVFrame **frame) { return ::avcodec_free_frame(frame); }; virtual int av_codec_is_decoder(const AVCodec *codec) { return ::av_codec_is_decoder(codec); } + virtual AVDictionary* av_frame_get_metadata(const AVFrame* frame) { return ::av_frame_get_metadata(frame); } // DLL faking. virtual bool ResolveExports() { return true; } @@ -217,6 +219,7 @@ class DllAvCodec : public DllDynamic, DllAvCodecInterface DEFINE_METHOD1(void, avcodec_free_frame, (AVFrame **p1)) DEFINE_METHOD1(AVCodec*, av_codec_next, (AVCodec *p1)) DEFINE_METHOD1(int, av_codec_is_decoder, (const AVCodec *p1)) + DEFINE_METHOD1(AVDictionary*, av_frame_get_metadata, (const AVFrame* p1)) BEGIN_METHOD_RESOLVE() RESOLVE_METHOD(avcodec_flush_buffers) @@ -251,6 +254,7 @@ class DllAvCodec : public DllDynamic, DllAvCodecInterface RESOLVE_METHOD(avcodec_fill_audio_frame) RESOLVE_METHOD(avcodec_free_frame) RESOLVE_METHOD(av_codec_is_decoder) + RESOLVE_METHOD(av_frame_get_metadata) END_METHOD_RESOLVE() /* dependencies of libavcodec */ |