From d25c90f4e7d387e2f1ab3c80169edb0729c93db2 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Fri, 14 Apr 2023 13:01:52 +0800 Subject: [PATCH] tmp --- simp.h | 19 +++++++++++++++++++ simp_ffmpeg.h | 18 ------------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/simp.h b/simp.h index 0f44cf8..ca63afb 100644 --- a/simp.h +++ b/simp.h @@ -26,6 +26,25 @@ struct simp_frame_s AVFrame* frame; }; +typedef struct { + AVFormatContext* fmt_ctx; + AVCodecContext* vcodec_ctx; + AVCodecContext* acodec_ctx; + + AVAudioFifo* afifo; + + int vidx; + int aidx; + + int nb_samples; + + AVFrame* vframe; + AVFrame* aframe; + AVPacket* vpkt; + AVPacket* apkt; + +} simp_ffmpeg_t; + struct simp_avio_s { scf_list_t list; diff --git a/simp_ffmpeg.h b/simp_ffmpeg.h index 945b05d..081f73a 100644 --- a/simp_ffmpeg.h +++ b/simp_ffmpeg.h @@ -3,24 +3,6 @@ #include"simp.h" -typedef struct { - AVFormatContext* fmt_ctx; - AVCodecContext* vcodec_ctx; - AVCodecContext* acodec_ctx; - - AVAudioFifo* afifo; - - int vidx; - int aidx; - - int nb_samples; - - AVFrame* vframe; - AVFrame* aframe; - AVPacket* vpkt; - AVPacket* apkt; - -} simp_ffmpeg_t; #endif -- 2.25.1