Revision d14f5391

View differences:

libavformat/txd.c
62 62
    marker     = get_le32(pb);
63 63

  
64 64
    if (url_feof(s->pb))
65
        return AVERROR(EIO);
65
        return AVERROR_EOF;
66 66
    if (marker != TXD_MARKER && marker != TXD_MARKER2) {
67 67
        av_log(s, AV_LOG_ERROR, "marker does not match\n");
68
        return AVERROR(EIO);
68
        return AVERROR_INVALIDDATA;
69 69
    }
70 70

  
71 71
    switch (id) {
......
79 79
            goto next_chunk;
80 80
        default:
81 81
            av_log(s, AV_LOG_ERROR, "unknown chunk id %i\n", id);
82
            return AVERROR(EIO);
82
            return AVERROR_INVALIDDATA;
83 83
    }
84 84

  
85 85
    ret = av_get_packet(s->pb, pkt, chunk_size);
86
    if (ret < 0)
87
        return ret;
86 88
    pkt->stream_index = 0;
87 89

  
88
    return ret <= 0 ? AVERROR(EIO) : ret;
90
    return 0;
89 91
}
90 92

  
91 93
AVInputFormat txd_demuxer =

Also available in: Unified diff