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:
4ffa6e7
)
handle errors reported by av_get_packet() in Bink demuxer
author
Peter Ross
<pross@xvid.org>
Thu, 4 Mar 2010 13:27:53 +0000
(13:27 +0000)
committer
Peter Ross
<pross@xvid.org>
Thu, 4 Mar 2010 13:27:53 +0000
(13:27 +0000)
Originally committed as revision 22208 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/bink.c
patch
|
blob
|
history
diff --git
a/libavformat/bink.c
b/libavformat/bink.c
index efccabde63af968e4000dfd110c1649d3858cd68..09da7e2c69b79f8e0314f9e466bb6c76652136f6 100644
(file)
--- a/
libavformat/bink.c
+++ b/
libavformat/bink.c
@@
-212,8
+212,7
@@
static int read_packet(AVFormatContext *s, AVPacket *pkt)
bink->current_track++;
if (audio_size >= 4) {
/* get one audio packet per track */
- if ((ret = av_get_packet(pb, pkt, audio_size))
- != audio_size)
+ if ((ret = av_get_packet(pb, pkt, audio_size)) <= 0)
return ret;
pkt->stream_index = bink->current_track;
pkt->pts = bink->audio_pts[bink->current_track - 1];