Mercurial > libavformat.hg
comparison rtpproto.c @ 1787:eb16c64144ee libavformat
This fixes error handling for BeOS, removing the need for some ifdefs.
AVERROR_ defines are moved to avcodec.h as they are needed in there as well. Feel free to move that to avutil/common.h.
Bumped up avcodec/format version numbers as though it's binary compatible we will want to rebuild apps as error values changed.
Please from now on use return AVERROR(EFOO) instead of the ugly return -EFOO in your code.
This also removes the need for berrno.h.
author | mmu_man |
---|---|
date | Tue, 13 Feb 2007 18:26:14 +0000 |
parents | 1f7a6dc01100 |
children | f67a8d12053d |
comparison
equal
deleted
inserted
replaced
1786:8cc34fe98a3b | 1787:eb16c64144ee |
---|---|
111 | 111 |
112 is_output = (flags & URL_WRONLY); | 112 is_output = (flags & URL_WRONLY); |
113 | 113 |
114 s = av_mallocz(sizeof(RTPContext)); | 114 s = av_mallocz(sizeof(RTPContext)); |
115 if (!s) | 115 if (!s) |
116 return -ENOMEM; | 116 return AVERROR(ENOMEM); |
117 h->priv_data = s; | 117 h->priv_data = s; |
118 | 118 |
119 url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port, | 119 url_split(NULL, 0, NULL, 0, hostname, sizeof(hostname), &port, |
120 path, sizeof(path), uri); | 120 path, sizeof(path), uri); |
121 /* extract parameters */ | 121 /* extract parameters */ |