aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtp_h264.c
diff options
context:
space:
mode:
authorColin McQuillan <m.niloc@googlemail.com>2009-07-27 14:29:06 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2009-07-27 14:29:06 +0000
commit202a6697ba54293235ce2d7bd5724f4f461e417f (patch)
tree5c67b537092c6fb1b007f6fae4bc8ff8e22d2659 /libavformat/rtp_h264.c
parentfccb1770e6f8b21716e61193396fd9dc2e43b79d (diff)
downloadffmpeg-202a6697ba54293235ce2d7bd5724f4f461e417f.tar.gz
Use named initializers and use new/free_context() instead of extradata()
for context allocators. Patch by Colin McQuillan m niloc googlemail com. Originally committed as revision 19518 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp_h264.c')
-rw-r--r--libavformat/rtp_h264.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavformat/rtp_h264.c b/libavformat/rtp_h264.c
index f15b703d93..fb7891dd3f 100644
--- a/libavformat/rtp_h264.c
+++ b/libavformat/rtp_h264.c
@@ -316,7 +316,7 @@ static int h264_handle_packet(AVFormatContext *ctx,
}
/* ---------------- public code */
-static PayloadContext *h264_new_extradata(void)
+static PayloadContext *h264_new_context(void)
{
PayloadContext *data =
av_mallocz(sizeof(PayloadContext) +
@@ -329,7 +329,7 @@ static PayloadContext *h264_new_extradata(void)
return data;
}
-static void h264_free_extradata(PayloadContext *data)
+static void h264_free_context(PayloadContext *data)
{
#ifdef DEBUG
int ii;
@@ -406,11 +406,11 @@ static int parse_h264_sdp_line(AVFormatContext *s, int st_index,
This is the structure for expanding on the dynamic rtp protocols (makes everything static. yay!)
*/
RTPDynamicProtocolHandler ff_h264_dynamic_handler = {
- "H264",
- CODEC_TYPE_VIDEO,
- CODEC_ID_H264,
- parse_h264_sdp_line,
- h264_new_extradata,
- h264_free_extradata,
- h264_handle_packet
+ .enc_name = "H264",
+ .codec_type = CODEC_TYPE_VIDEO,
+ .codec_id = CODEC_ID_H264,
+ .parse_sdp_a_line = parse_h264_sdp_line,
+ .open = h264_new_context,
+ .close = h264_free_context,
+ .parse_packet = h264_handle_packet
};