[FFmpeg-devel] RTP/SVQ3 payload parser

Diego Biurrun diego
Wed Jul 29 01:39:12 CEST 2009


On Tue, Jul 28, 2009 at 06:21:11PM -0400, Ronald S. Bultje wrote:
> 
> --- /dev/null	1970-01-01 00:00:00.000000000 +0000
> +++ ffmpeg-svn/libavformat/rtp_svq3.c	2009-07-28 18:17:30.000000000 -0400
> @@ -0,0 +1,146 @@
> +/*
> + * RTP/Sorensen-3 support.

support?

> +/**
> + * @file rtp-sv3v.c

dir prefix

> +struct PayloadContext {
> +    ByteIOContext *pktbuf;
> +    int64_t timestamp;
> +    int is_keyframe;
> +};

This could be aligned.

> +static int
> +sv3v_parse_sdp_line (AVFormatContext *s, int stream_index,

K&R please

> +        sv->timestamp = *timestamp;
> +        sv->is_keyframe = flags & RTP_FLAG_KEY;

align

> +    if (end_packet) {
> +        av_init_packet(pkt);
> +        pkt->stream_index = st->index;
> +        pkt->pts = sv->timestamp;
> +        pkt->flags = sv->is_keyframe ? AV_PKT_FLAG_KEY : 0;
> +        pkt->size = url_close_dyn_buf(sv->pktbuf, &pkt->data);
> +        sv->pktbuf = NULL;

align

Diego



More information about the ffmpeg-devel mailing list