refactor(libvideo2x): extracted video frame count estimation into a function

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x
2024-11-08 00:00:00 +00:00
parent 6a218ebd9c
commit bc8ae34dde
5 changed files with 65 additions and 42 deletions

View File

@@ -0,0 +1,10 @@
#ifndef AVUTILS_H
#define AVUTILS_H
extern "C" {
#include <libavformat/avformat.h>
}
int64_t get_video_frame_count(AVFormatContext *ifmt_ctx, int in_vstream_idx);
#endif // AVUTILS_H