diff options
Diffstat (limited to 'libavformat/4xm.c')
-rw-r--r-- | libavformat/4xm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c index fd8a8cc0ac..462917893e 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -260,7 +260,7 @@ static int fourxm_read_packet(AVFormatContext *s, fourcc_tag = LE_32(&header[0]); size = LE_32(&header[4]); if (url_feof(pb)) - return -EIO; + return AVERROR_IO; switch (fourcc_tag) { case LIST_TAG: @@ -278,7 +278,7 @@ static int fourxm_read_packet(AVFormatContext *s, /* allocate 8 more bytes than 'size' to account for fourcc * and size */ if (av_new_packet(pkt, size + 8)) - return -EIO; + return AVERROR_IO; pkt->stream_index = fourxm->video_stream_index; pkt->pts = fourxm->video_pts; memcpy(pkt->data, header, 8); @@ -298,7 +298,7 @@ static int fourxm_read_packet(AVFormatContext *s, if (track_number == fourxm->selected_track) { if (av_new_packet(pkt, size)) - return -EIO; + return AVERROR_IO; pkt->stream_index = fourxm->tracks[fourxm->selected_track].stream_index; pkt->pts = fourxm->audio_pts; |