*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;
if (height == 0) {
return frame->height;
} else {
- return width;
+ return height;
}
}