Commit 0ab4bc57 authored by pross's avatar pross

handle errors reported by av_get_packet() in Bink demuxer

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22208 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 14583987
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment