Commit 0d569904 authored by rbultje's avatar rbultje

Don't return 0 if buffer setup failed. That signals the RTSP demuxer that

the packet was filled in, leading to virtually random behaviour in the
decoder later on. Instead, return a negative value.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21851 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8033e49d
......@@ -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 res;
return AVERROR(EIO);
if (!asf->pktbuf)
return AVERROR(EIO);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment