This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
libmodplug: handle EOF correctly.
tags/n0.9
Clément Bœsch
13 years ago
parent
d9b6068764
commit
d7366d918f
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/libmodplug.c
+ 1
- 1
libavformat/libmodplug.c
View File
@@ -74,7 +74,7 @@ static int modplug_read_packet(AVFormatContext *s, AVPacket *pkt)
pkt->size = ModPlug_Read(modplug->f, pkt->data, 512);
pkt->size = ModPlug_Read(modplug->f, pkt->data, 512);
if (pkt->size <= 0) {
if (pkt->size <= 0) {
av_free_packet(pkt);
av_free_packet(pkt);
return AVERROR(EIO);
return
pkt->size == 0 ? AVERROR_EOF :
AVERROR(EIO);
}
}
return 0;
return 0;
}
}
Write
Preview
Loading…
Cancel
Save