projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0df9e4
)
return an error if we can not get a full packet,
author
Stefan Gehrer
<stefan.gehrer@gmx.de>
Sat, 24 Jan 2009 08:20:42 +0000
(08:20 +0000)
committer
Stefan Gehrer
<stefan.gehrer@gmx.de>
Sat, 24 Jan 2009 08:20:42 +0000
(08:20 +0000)
fixes hang on EOF
Originally committed as revision 16740 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/iss.c
patch
|
blob
|
history
diff --git
a/libavformat/iss.c
b/libavformat/iss.c
index
c722f62
..
0d24c96
100644
(file)
--- a/
libavformat/iss.c
+++ b/
libavformat/iss.c
@@
-112,8
+112,8
@@
static int iss_read_packet(AVFormatContext *s, AVPacket *pkt)
IssDemuxContext *iss = s->priv_data;
int ret = av_get_packet(s->pb, pkt, iss->packet_size);
- if(ret
< 0
)
- return
ret
;
+ if(ret
!= iss->packet_size
)
+ return
AVERROR(EIO)
;
pkt->stream_index = 0;
pkt->pts = url_ftell(s->pb) - iss->sample_start_pos;