lavf/utils: replace deprecated url_ferror.
This commit is contained in:
parent
86af962830
commit
73a5287482
@ -3359,8 +3359,8 @@ int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt){
|
|||||||
|
|
||||||
if(ret<0)
|
if(ret<0)
|
||||||
return ret;
|
return ret;
|
||||||
if(url_ferror(s->pb))
|
if(s->pb && s->pb->error)
|
||||||
return url_ferror(s->pb);
|
return s->pb->error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3384,7 +3384,7 @@ int av_write_trailer(AVFormatContext *s)
|
|||||||
|
|
||||||
if(ret<0)
|
if(ret<0)
|
||||||
goto fail;
|
goto fail;
|
||||||
if(url_ferror(s->pb))
|
if(s->pb && s->pb->error)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3392,7 +3392,7 @@ int av_write_trailer(AVFormatContext *s)
|
|||||||
ret = s->oformat->write_trailer(s);
|
ret = s->oformat->write_trailer(s);
|
||||||
fail:
|
fail:
|
||||||
if(ret == 0)
|
if(ret == 0)
|
||||||
ret=url_ferror(s->pb);
|
ret = s->pb ? s->pb->error : 0;
|
||||||
for(i=0;i<s->nb_streams;i++) {
|
for(i=0;i<s->nb_streams;i++) {
|
||||||
av_freep(&s->streams[i]->priv_data);
|
av_freep(&s->streams[i]->priv_data);
|
||||||
av_freep(&s->streams[i]->index_entries);
|
av_freep(&s->streams[i]->index_entries);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user