X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=nageru%2Fffmpeg_capture.cpp;fp=nageru%2Fffmpeg_capture.cpp;h=8f174ad018f7e236c896b7458af7e3248101a62f;hp=a667d4f5b033aca8f5393d90f0f73bee31a87e4d;hb=e180625a53cb78a3d326a007e9aedfdc1b844bfa;hpb=4148366592acbd18be713b0ed333dabb2196f90d diff --git a/nageru/ffmpeg_capture.cpp b/nageru/ffmpeg_capture.cpp index a667d4f..8f174ad 100644 --- a/nageru/ffmpeg_capture.cpp +++ b/nageru/ffmpeg_capture.cpp @@ -895,6 +895,8 @@ AVFrameWithDeleter FFmpegCapture::decode_frame(AVFormatContext *format_ctx, AVCo *error = true; return AVFrameWithDeleter(nullptr); } + sw_frame->pts = video_avframe->pts; + sw_frame->pkt_duration = video_avframe->pkt_duration; video_avframe = move(sw_frame); } frame_finished = true;