mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-23 08:46:55 +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:
parent
6635d03818
commit
7d29f9ce17
@ -158,7 +158,7 @@ QImage ConvertFrame(
|
||||
uint8_t *data[AV_NUM_DATA_POINTERS] = { storage.bits(), nullptr };
|
||||
int linesize[AV_NUM_DATA_POINTERS] = { storage.bytesPerLine(), 0 };
|
||||
|
||||
const auto lines = sws_scale(
|
||||
sws_scale(
|
||||
stream.swscale.get(),
|
||||
frame->data,
|
||||
frame->linesize,
|
||||
@ -166,13 +166,6 @@ QImage ConvertFrame(
|
||||
frame->height,
|
||||
data,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user