From 0da71265d84b587c7159cd82708ca60ad050dd4c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 4 Apr 2003 14:42:28 +0000 Subject: H264 decoder & demuxer Originally committed as revision 1732 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/raw.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'libavformat/raw.c') diff --git a/libavformat/raw.c b/libavformat/raw.c index a1dcf871c4..bc6e0ac56e 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -280,6 +280,31 @@ AVOutputFormat m4v_oformat = { raw_write_trailer, }; +AVInputFormat h264_iformat = { + "h264", + "raw H264 video format", + 0, + NULL /*mpegvideo_probe*/, + video_read_header, + raw_read_packet, + raw_read_close, + .extensions = "h26l,h264", //FIXME remove after writing mpeg4_probe + .value = CODEC_ID_H264, +}; + +AVOutputFormat h264_oformat = { + "h264", + "raw H264 video format", + NULL, + "h264", + 0, + CODEC_ID_NONE, + CODEC_ID_H264, + raw_write_header, + raw_write_packet, + raw_write_trailer, +}; + AVInputFormat mpegvideo_iformat = { "mpegvideo", "MPEG video", @@ -494,6 +519,9 @@ int raw_init(void) av_register_input_format(&m4v_iformat); av_register_output_format(&m4v_oformat); + + av_register_input_format(&h264_iformat); + av_register_output_format(&h264_oformat); av_register_input_format(&mpegvideo_iformat); av_register_output_format(&mpeg1video_oformat); -- cgit v1.2.3