Skip to content

Commit

Permalink
ffmpeg patch
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitasius committed Feb 2, 2022
1 parent a1817ea commit 3016016
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions TMessagesProj/jni/gifvideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,11 +790,14 @@ int readCallback(void *opaque, uint8_t *buf, int buf_size) {
if (attached) {
javaVm->DetachCurrentThread();
}
return (int) read(info->fd, buf, (size_t) buf_size);
// return (int) read(info->fd, buf, (size_t) buf_size);
int ret = (int) read(info->fd, buf, (size_t) buf_size);
return ret ? ret : AVERROR_EOF;
}
}
}
return 0;
// return 0;
return AVERROR_EOF;
}

int64_t seekCallback(void *opaque, int64_t offset, int whence) {
Expand Down

0 comments on commit 3016016

Please sign in to comment.