mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
handle errors reported by av_get_packet() in Bink demuxer
Originally committed as revision 22208 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4ffa6e78c2
commit
6c88dc3dbf
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user