aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-14 20:38:54 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-03-15 08:04:10 -0400
commit75b9ed04b977bfd467816f7e60c6511ef89b8a2b (patch)
tree8883581c4f402d46f2d184769c632bc19d726a20 /libavformat
parent025225d7ee0e7585dff9617c60259febd9e7299c (diff)
downloadffmpeg-75b9ed04b977bfd467816f7e60c6511ef89b8a2b.tar.gz
lavf/utils: dont't explicitly check AVIOContext.error
The error should be caught in write_packet()/write_trailer() Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 918b07df41..902a170b53 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2988,8 +2988,6 @@ int av_write_frame(AVFormatContext *s, AVPacket *pkt)
return ret;
ret= s->oformat->write_packet(s, pkt);
- if(!ret)
- ret= url_ferror(s->pb);
return ret;
}
@@ -3111,8 +3109,6 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){
if(ret<0)
return ret;
- if(url_ferror(s->pb))
- return url_ferror(s->pb);
}
}
@@ -3134,15 +3130,11 @@ int av_write_trailer(AVFormatContext *s)
if(ret<0)
goto fail;
- if(url_ferror(s->pb))
- goto fail;
}
if(s->oformat->write_trailer)
ret = s->oformat->write_trailer(s);
fail:
- if(ret == 0)
- ret=url_ferror(s->pb);
for(i=0;i<s->nb_streams;i++) {
av_freep(&s->streams[i]->priv_data);
av_freep(&s->streams[i]->index_entries);