Permalink
Browse files

ffmpeg: add av_find_default_stream_index to interface

  • Loading branch information...
1 parent f7aa5a5 commit 4567cfabe9567a873a67cbb0f31407e21df360ac @FernetMenta committed Aug 23, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/DllAvFormat.h
View
4 lib/DllAvFormat.h
@@ -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)
@@ -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; }
@@ -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)
@@ -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 */

0 comments on commit 4567cfa

Please sign in to comment.