mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-01 21:48:15 +08:00
matroskadec: return AVERROR_EOF upon detection of end of file
Originally committed as revision 17460 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -1761,7 +1761,7 @@ static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
|
|
||||||
while (matroska_deliver_packet(matroska, pkt)) {
|
while (matroska_deliver_packet(matroska, pkt)) {
|
||||||
if (matroska->done)
|
if (matroska->done)
|
||||||
return AVERROR(EIO);
|
return AVERROR_EOF;
|
||||||
matroska_parse_cluster(matroska);
|
matroska_parse_cluster(matroska);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user