diff options
author | Peter Ross <pross@xvid.org> | 2010-03-04 13:27:53 +0000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2010-03-04 13:27:53 +0000 |
commit | 6c88dc3dbf5a2c796023227b59a963d23801801e (patch) | |
tree | 89bbea2e93e62c49e1512da32861649a9b5b772f /libavformat | |
parent | 4ffa6e78c212877abda6856f3c609d00478049df (diff) | |
download | ffmpeg-6c88dc3dbf5a2c796023227b59a963d23801801e.tar.gz |
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')
-rw-r--r-- | libavformat/bink.c | 3 |
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]; |