Revision 044a950d

View differences:

libavformat/idcin.c
260 260
        url_fseek(pb, 4, SEEK_CUR);
261 261
        chunk_size -= 4;
262 262
        ret= av_get_packet(pb, pkt, chunk_size);
263
        if (ret != chunk_size)
264
            return AVERROR(EIO);
263
        if (ret < 0)
264
            return ret;
265 265
        pkt->stream_index = idcin->video_stream_index;
266 266
        pkt->pts = idcin->pts;
267 267
    } else {
......
271 271
        else
272 272
            chunk_size = idcin->audio_chunk_size1;
273 273
        ret= av_get_packet(pb, pkt, chunk_size);
274
        if (ret != chunk_size)
275
            return AVERROR(EIO);
274
        if (ret < 0)
275
            return ret;
276 276
        pkt->stream_index = idcin->audio_stream_index;
277 277
        pkt->pts = idcin->pts;
278 278

  

Also available in: Unified diff