# HG changeset patch # User rbultje # Date 1266348409 0 # Node ID 6c380241df7c1ae124ef2bd480ba4b2b3e5f0142 # Parent c408705a23273bfc3bec325a451baebde918a8a4 Fix two problems (no idea how this ever worked): - the return value of url_open_dyn_*buf() is 0 on success, so using if (!(res = url_open_dyn_*buf())) return res; is not going to work - url_open_dyn_packet_buf actually writes the max_packet_size before each piece of data. Feeding this to the ASF demuxer will never work. Therefore, use url_open_dyn_buf() instead. diff -r c408705a2327 -r 6c380241df7c rtp_asf.c --- a/rtp_asf.c Tue Feb 16 18:25:05 2010 +0000 +++ b/rtp_asf.c Tue Feb 16 19:26:49 2010 +0000 @@ -196,7 +196,7 @@ av_free(p); } if (!len_off && !asf->pktbuf && - !(res = url_open_dyn_packet_buf(&asf->pktbuf, rt->asf_ctx->packet_size))) + (res = url_open_dyn_buf(&asf->pktbuf)) < 0) return res; if (!asf->pktbuf) return AVERROR(EIO);