Fix row pitch being assumed to be 'width * 4'

This commit is contained in:
Cameron Gutman
2020-01-22 17:40:48 -08:00
parent 8c378eb27e
commit 6ec0cae2d0
4 changed files with 19 additions and 10 deletions

View File

@@ -46,7 +46,7 @@ void encode(int64_t frame, ctx_t &ctx, sws_t &sws, frame_t &yuv_frame, platf::im
av_frame_make_writable(yuv_frame.get());
const int linesizes[2] {
(int)(img.width * sizeof(int)), 0
img.row_pitch, 0
};
auto data = img.data;