Mercurial > libavformat.hg
changeset 5749:dfbaca29e6fd libavformat
handle errors reported by av_get_packet() in Bink demuxer
author | pross |
---|---|
date | Thu, 04 Mar 2010 13:27:53 +0000 |
parents | ee8f29f3f9f7 |
children | 0f9c0db923e5 |
files | bink.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bink.c Thu Mar 04 13:26:01 2010 +0000 +++ b/bink.c Thu Mar 04 13:27:53 2010 +0000 @@ -212,8 +212,7 @@ 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];