mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 16:45:12 +00:00
Don't check sws_scale return value
To workaround ffmpeg bug: https://gitlab.alpinelinux.org/alpine/aports/-/issues/11722
This commit is contained in:
@@ -158,7 +158,7 @@ QImage ConvertFrame(
|
|||||||
uint8_t *data[AV_NUM_DATA_POINTERS] = { storage.bits(), nullptr };
|
uint8_t *data[AV_NUM_DATA_POINTERS] = { storage.bits(), nullptr };
|
||||||
int linesize[AV_NUM_DATA_POINTERS] = { storage.bytesPerLine(), 0 };
|
int linesize[AV_NUM_DATA_POINTERS] = { storage.bytesPerLine(), 0 };
|
||||||
|
|
||||||
const auto lines = sws_scale(
|
sws_scale(
|
||||||
stream.swscale.get(),
|
stream.swscale.get(),
|
||||||
frame->data,
|
frame->data,
|
||||||
frame->linesize,
|
frame->linesize,
|
||||||
@@ -166,13 +166,6 @@ QImage ConvertFrame(
|
|||||||
frame->height,
|
frame->height,
|
||||||
data,
|
data,
|
||||||
linesize);
|
linesize);
|
||||||
if (lines != resize.height()) {
|
|
||||||
LOG(("Streaming Error: "
|
|
||||||
"Unable to sws_scale to good size %1, got %2."
|
|
||||||
).arg(resize.height()
|
|
||||||
).arg(lines));
|
|
||||||
return QImage();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FFmpeg::ClearFrameMemory(frame);
|
FFmpeg::ClearFrameMemory(frame);
|
||||||
|
Reference in New Issue
Block a user