Skip to content

Commit

Permalink
Implement get video and audio codec context
Browse files Browse the repository at this point in the history
  • Loading branch information
David Schmidt committed Sep 9, 2023
1 parent a13c9c0 commit 320864d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/zm_ffmpeg_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 320864d

Please sign in to comment.