diff --git a/libavformat/rtp_asf.c b/libavformat/rtp_asf.c index 2b05b3e6d9..d44ff5a67f 100644 --- a/libavformat/rtp_asf.c +++ b/libavformat/rtp_asf.c @@ -197,7 +197,7 @@ static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf, } if (!len_off && !asf->pktbuf && !(res = url_open_dyn_packet_buf(&asf->pktbuf, rt->asf_ctx->packet_size))) - return AVERROR(EIO); + return res; if (!asf->pktbuf) return AVERROR(EIO);