diff rtp_asf.c @ 5662:8fddfdd5e9e7 libavformat

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.
author rbultje
date Tue, 16 Feb 2010 18:19:28 +0000
parents 51b1a9987537
children c408705a2327
line wrap: on
line diff
--- a/rtp_asf.c	Tue Feb 16 16:32:25 2010 +0000
+++ b/rtp_asf.c	Tue Feb 16 18:19:28 2010 +0000
@@ -197,7 +197,7 @@
             }
             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);