summaryrefslogtreecommitdiff
path: root/libavformat/thp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/thp.c')
-rw-r--r--libavformat/thp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/thp.c b/libavformat/thp.c
index 7f9a8881ca..2b7533c6e2 100644
--- a/libavformat/thp.c
+++ b/libavformat/thp.c
@@ -148,7 +148,7 @@ static int thp_read_packet(AVFormatContext *s,
if (thp->audiosize == 0) {
/* Terminate when last frame is reached. */
if (thp->frame >= thp->framecnt)
- return AVERROR_IO;
+ return AVERROR(EIO);
url_fseek(pb, thp->next_frame, SEEK_SET);
@@ -169,7 +169,7 @@ static int thp_read_packet(AVFormatContext *s,
ret = av_get_packet(pb, pkt, size);
if (ret != size) {
av_free_packet(pkt);
- return AVERROR_IO;
+ return AVERROR(EIO);
}
pkt->stream_index = thp->video_stream_index;
@@ -177,7 +177,7 @@ static int thp_read_packet(AVFormatContext *s,
ret = av_get_packet(pb, pkt, thp->audiosize);
if (ret != thp->audiosize) {
av_free_packet(pkt);
- return AVERROR_IO;
+ return AVERROR(EIO);
}
pkt->stream_index = thp->audio_stream_index;