mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix sent GIFs playback.
This commit is contained in:
parent
4794a0be84
commit
8fb2772093
1 changed files with 3 additions and 3 deletions
|
@ -162,10 +162,10 @@ Stream File::Context::initStream(
|
|||
result.duration = (info->duration != AV_NOPTS_VALUE)
|
||||
? FFmpeg::PtsToTime(info->duration, result.timeBase)
|
||||
: FFmpeg::PtsToTime(format->duration, FFmpeg::kUniversalTimeBase);
|
||||
if (result.duration <= 0) {
|
||||
result.codec = nullptr;
|
||||
} else if (result.duration == kTimeUnknown) {
|
||||
if (result.duration == kTimeUnknown) {
|
||||
result.duration = kDurationUnavailable;
|
||||
} else if (result.duration <= 0) {
|
||||
result.codec = nullptr;
|
||||
} else {
|
||||
++result.duration;
|
||||
if (result.duration > kDurationMax) {
|
||||
|
|
Loading…
Add table
Reference in a new issue