Skip to content

Commit

Permalink
ffmpeg: add av_find_default_stream_index to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Mar 27, 2013
1 parent f7aa5a5 commit 4567cfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/DllAvFormat.h
Expand Up @@ -97,6 +97,7 @@ class DllAvFormatInterface
virtual int avformat_write_header (AVFormatContext *s, AVDictionary **options)=0;
virtual int av_write_trailer(AVFormatContext *s)=0;
virtual int av_write_frame (AVFormatContext *s, AVPacket *pkt)=0;
virtual int av_find_default_stream_index(AVFormatContext *s)=0;
};

#if (defined USE_EXTERNAL_FFMPEG) || (defined TARGET_DARWIN)
Expand Down Expand Up @@ -151,6 +152,7 @@ class DllAvFormat : public DllDynamic, DllAvFormatInterface
virtual int avformat_write_header (AVFormatContext *s, AVDictionary **options) { return ::avformat_write_header (s, options); }
virtual int av_write_trailer(AVFormatContext *s) { return ::av_write_trailer(s); }
virtual int av_write_frame (AVFormatContext *s, AVPacket *pkt) { return ::av_write_frame(s, pkt); }
virtual int av_find_default_stream_index(AVFormatContext *s) { return ::av_find_default_stream_index(s); }

// DLL faking.
virtual bool ResolveExports() { return true; }
Expand Down Expand Up @@ -206,6 +208,7 @@ class DllAvFormat : public DllDynamic, DllAvFormatInterface
DEFINE_METHOD2(int, avformat_write_header , (AVFormatContext *p1, AVDictionary **p2))
DEFINE_METHOD1(int, av_write_trailer, (AVFormatContext *p1))
DEFINE_METHOD2(int, av_write_frame , (AVFormatContext *p1, AVPacket *p2))
DEFINE_METHOD1(int, av_find_default_stream_index, (AVFormatContext *p1))
BEGIN_METHOD_RESOLVE()
RESOLVE_METHOD_RENAME(av_register_all, av_register_all_dont_call)
RESOLVE_METHOD(av_find_input_format)
Expand Down Expand Up @@ -239,6 +242,7 @@ class DllAvFormat : public DllDynamic, DllAvFormatInterface
RESOLVE_METHOD(avformat_write_header)
RESOLVE_METHOD(av_write_trailer)
RESOLVE_METHOD(av_write_frame)
RESOLVE_METHOD(av_find_default_stream_index)
END_METHOD_RESOLVE()

/* dependencies of libavformat */
Expand Down

0 comments on commit 4567cfa

Please sign in to comment.