[FFmpeg-devel] [PATCH] assdec: return EOF instead of EIO.
Nicolas George
nicolas.george at normalesup.org
Thu Aug 2 11:30:39 CEST 2012
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
libavformat/assdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Maybe it could be converted to FFDemuxSubtitlesQueue, but that is another
story.
diff --git a/libavformat/assdec.c b/libavformat/assdec.c
index 6295888..6229857 100644
--- a/libavformat/assdec.c
+++ b/libavformat/assdec.c
@@ -147,7 +147,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
uint8_t *p, *end;
if(ass->event_index >= ass->event_count)
- return AVERROR(EIO);
+ return AVERROR_EOF;
p= ass->event[ ass->event_index ];
--
1.7.10.4
More information about the ffmpeg-devel
mailing list