Implement get video and audio codec context

pull/3765/head
David Schmidt 2023-09-09 18:51:36 +02:00
parent a13c9c06f2
commit 320864d252
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ class FFmpeg_Input {
return ( audio_stream_id >= 0 ) ? input_format_context->streams[audio_stream_id] : nullptr;
}
AVFormatContext *get_format_context() { return input_format_context; };
AVCodecContext *get_video_codec_context() { return ( video_stream_id >= 0 ) ? streams[video_stream_id].context : nullptr; };
AVCodecContext *get_audio_codec_context() { return ( audio_stream_id >= 0 ) ? streams[audio_stream_id].context : nullptr; };
private:
typedef struct {