X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg_capture.h;h=f718c70a23ff4dccceb7df40877f389e44815266;hb=fa54f2630c56a1df0046923d6a77b1bd58abf240;hp=c50771549b60670fa323eb67da7b1c8dfa93876c;hpb=b0ce4383b7d64760bbfccf4e0e769b293f0db0cd;p=nageru diff --git a/ffmpeg_capture.h b/ffmpeg_capture.h index c507715..f718c70 100644 --- a/ffmpeg_capture.h +++ b/ffmpeg_capture.h @@ -35,10 +35,12 @@ extern "C" { #include #include #include +#include } #include "bmusb/bmusb.h" #include "ffmpeg_raii.h" +#include "ref_counted_frame.h" #include "quittable_sleeper.h" struct AVFormatContext; @@ -203,7 +205,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;