From 3e68b3ba7b015cf2154ad2023781eedd47f0f4bb Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 14 Mar 2011 20:38:55 +0100 Subject: avio: deprecate url_ferror AVIOContext.error should be used directly instead. Signed-off-by: Ronald S. Bultje --- libavformat/dsicin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/dsicin.c') diff --git a/libavformat/dsicin.c b/libavformat/dsicin.c index 7030491992..023441be73 100644 --- a/libavformat/dsicin.c +++ b/libavformat/dsicin.c @@ -147,7 +147,7 @@ static int cin_read_frame_header(CinDemuxContext *cin, AVIOContext *pb) { hdr->video_frame_size = avio_rl32(pb); hdr->audio_frame_size = avio_rl32(pb); - if (pb->eof_reached || url_ferror(pb)) + if (pb->eof_reached || pb->error) return AVERROR(EIO); if (avio_rl32(pb) != 0xAA55AA55) -- cgit v1.2.3