mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
Cosmetics: remove spaces between function name and arguments in declaration,
and put return type ("static void") on the same line as function name. Originally committed as revision 19519 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
202a6697ba
commit
acfe8faf29
@ -40,8 +40,7 @@
|
|||||||
* min_pktsize values in the ASF file header.
|
* min_pktsize values in the ASF file header.
|
||||||
* @return 0 on success, <0 on failure (currently -1).
|
* @return 0 on success, <0 on failure (currently -1).
|
||||||
*/
|
*/
|
||||||
static int
|
static int rtp_asf_fix_header(uint8_t *buf, int len)
|
||||||
rtp_asf_fix_header(uint8_t *buf, int len)
|
|
||||||
{
|
{
|
||||||
uint8_t *p = buf, *end = buf + len;
|
uint8_t *p = buf, *end = buf + len;
|
||||||
|
|
||||||
@ -78,14 +77,12 @@ rtp_asf_fix_header(uint8_t *buf, int len)
|
|||||||
* on packet boundaries, such that the ASF demuxer can return
|
* on packet boundaries, such that the ASF demuxer can return
|
||||||
* safely and resume business at the next packet.
|
* safely and resume business at the next packet.
|
||||||
*/
|
*/
|
||||||
static int
|
static int packetizer_read(void *opaque, uint8_t *buf, int buf_size)
|
||||||
packetizer_read(void *opaque, uint8_t *buf, int buf_size)
|
|
||||||
{
|
{
|
||||||
return AVERROR(EAGAIN);
|
return AVERROR(EAGAIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void init_packetizer(ByteIOContext *pb, uint8_t *buf, int len)
|
||||||
init_packetizer(ByteIOContext *pb, uint8_t *buf, int len)
|
|
||||||
{
|
{
|
||||||
init_put_byte(pb, buf, len, 0, NULL, packetizer_read, NULL, NULL);
|
init_put_byte(pb, buf, len, 0, NULL, packetizer_read, NULL, NULL);
|
||||||
|
|
||||||
@ -118,8 +115,7 @@ void ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int asfrtp_parse_sdp_line(AVFormatContext *s, int stream_index,
|
||||||
asfrtp_parse_sdp_line (AVFormatContext *s, int stream_index,
|
|
||||||
PayloadContext *asf, const char *line)
|
PayloadContext *asf, const char *line)
|
||||||
{
|
{
|
||||||
if (av_strstart(line, "stream:", &line)) {
|
if (av_strstart(line, "stream:", &line)) {
|
||||||
@ -155,9 +151,9 @@ struct PayloadContext {
|
|||||||
* 1 when a packet was written into /p pkt, and more packets might be left;
|
* 1 when a packet was written into /p pkt, and more packets might be left;
|
||||||
* <0 when not enough data was provided to return a full packet, or on error.
|
* <0 when not enough data was provided to return a full packet, or on error.
|
||||||
*/
|
*/
|
||||||
static int
|
static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf,
|
||||||
asfrtp_parse_packet (AVFormatContext *s, PayloadContext *asf, AVStream *st,
|
AVStream *st, AVPacket *pkt,
|
||||||
AVPacket *pkt, uint32_t *timestamp,
|
uint32_t *timestamp,
|
||||||
const uint8_t *buf, int len, int flags)
|
const uint8_t *buf, int len, int flags)
|
||||||
{
|
{
|
||||||
ByteIOContext *pb = &asf->pb;
|
ByteIOContext *pb = &asf->pb;
|
||||||
@ -253,14 +249,12 @@ asfrtp_parse_packet (AVFormatContext *s, PayloadContext *asf, AVStream *st,
|
|||||||
return res == 1 ? -1 : res;
|
return res == 1 ? -1 : res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static PayloadContext *
|
static PayloadContext *asfrtp_new_context(void)
|
||||||
asfrtp_new_context (void)
|
|
||||||
{
|
{
|
||||||
return av_mallocz(sizeof(PayloadContext));
|
return av_mallocz(sizeof(PayloadContext));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void asfrtp_free_context(PayloadContext *asf)
|
||||||
asfrtp_free_context (PayloadContext *asf)
|
|
||||||
{
|
{
|
||||||
if (asf->pktbuf) {
|
if (asf->pktbuf) {
|
||||||
uint8_t *p = NULL;
|
uint8_t *p = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user