aboutsummaryrefslogtreecommitdiff
path: root/libavformat/bink.c
diff options
context:
space:
mode:
authorPeter Ross2010-03-04 13:27:53 +0000
committerPeter Ross2010-03-04 13:27:53 +0000
commit6c88dc3dbf5a2c796023227b59a963d23801801e (patch)
tree89bbea2e93e62c49e1512da32861649a9b5b772f /libavformat/bink.c
parent4ffa6e78c212877abda6856f3c609d00478049df (diff)
handle errors reported by av_get_packet() in Bink demuxer
Originally committed as revision 22208 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/bink.c')
-rw-r--r--libavformat/bink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/bink.c b/libavformat/bink.c
index efccabde63..09da7e2c69 100644
--- 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];