X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg_capture.h;fp=ffmpeg_capture.h;h=e573caab9368565c8797ebeb4e65c4ea34bf2092;hb=20377c411096a3dc84f6669eb6a5177019f06667;hp=c50771549b60670fa323eb67da7b1c8dfa93876c;hpb=f53bc097f57c9875a5c43c43bea5fa596e0bf99f;p=nageru diff --git a/ffmpeg_capture.h b/ffmpeg_capture.h index c507715..e573caa 100644 --- a/ffmpeg_capture.h +++ b/ffmpeg_capture.h @@ -39,6 +39,7 @@ extern "C" { #include "bmusb/bmusb.h" #include "ffmpeg_raii.h" +#include "ref_counted_frame.h" #include "quittable_sleeper.h" struct AVFormatContext; @@ -203,7 +204,7 @@ private: void convert_audio(const AVFrame *audio_avframe, bmusb::FrameAllocator::Frame *audio_frame, bmusb::AudioFormat *audio_format); bmusb::VideoFormat construct_video_format(const AVFrame *frame, AVRational video_timebase); - bmusb::FrameAllocator::Frame make_video_frame(const AVFrame *frame, const std::string &pathname, bool *error); + UniqueFrame make_video_frame(const AVFrame *frame, const std::string &pathname, bool *error); std::string description, filename; uint16_t timecode = 0;