tdesktop/Telegram/SourceFiles/media/clip
Alexander Kernozhitsky ca4b5edf21 Correct FFmpeg API usage
FFmpeg docs say that you must return AVERROR_EOF from the read callback, not zero. Still, Telegram just propagates the return value from IODevice::read() call, which returns zero in case of EOF.

I don't know whether this commit has any effect on the upstream build, but it fixes a bug in Debian build of Telegram, which is using FFmpeg 5.1 instead of 4.4. Still, it's also useful in the upstream, as it makes work with FFmpeg more correct.
2022-09-04 08:04:02 +04:00
..
media_clip_check_streaming.cpp Add Qt 6 support 2021-10-21 13:15:00 +04:00
media_clip_check_streaming.h Move Media::Clip::Reader and FileLocation to td_ui. 2020-10-30 18:32:18 +03:00
media_clip_ffmpeg.cpp Correct FFmpeg API usage 2022-09-04 08:04:02 +04:00
media_clip_ffmpeg.h Move Webm sticker to UnwrappedMedia. 2022-08-04 13:35:34 +03:00
media_clip_implementation.cpp Move Media::Clip::Reader and FileLocation to td_ui. 2020-10-30 18:32:18 +03:00
media_clip_implementation.h Move Webm sticker to UnwrappedMedia. 2022-08-04 13:35:34 +03:00
media_clip_reader.cpp Move Webm sticker to UnwrappedMedia. 2022-08-04 13:35:34 +03:00
media_clip_reader.h Move Webm sticker to UnwrappedMedia. 2022-08-04 13:35:34 +03:00