Revision 5eef7bcd libavformat/mtv.c

View differences:

libavformat/mtv.c
168 168
        url_fskip(pb, MTV_AUDIO_PADDING_SIZE);
169 169

  
170 170
        ret = av_get_packet(pb, pkt, MTV_ASUBCHUNK_DATA_SIZE);
171
        if(ret != MTV_ASUBCHUNK_DATA_SIZE)
172
            return AVERROR(EIO);
171
        if(ret < 0)
172
            return ret;
173 173

  
174 174
        pkt->pos -= MTV_AUDIO_PADDING_SIZE;
175 175
        pkt->stream_index = AUDIO_SID;
......
177 177
    }else
178 178
    {
179 179
        ret = av_get_packet(pb, pkt, mtv->img_segment_size);
180
        if(ret != mtv->img_segment_size)
181
            return AVERROR(EIO);
180
        if(ret < 0)
181
            return ret;
182 182

  
183 183
#if !HAVE_BIGENDIAN
184 184

  

Also available in: Unified diff