diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-04-04 14:42:28 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-04-04 14:42:28 +0000 |
commit | 0da71265d84b587c7159cd82708ca60ad050dd4c (patch) | |
tree | fc97766fbbea1ab3af9df1aa9e4f37f8b0aca02d /libavformat/raw.c | |
parent | 6aafe463e5d1483b95ad259334c45d2741c92fb2 (diff) | |
download | ffmpeg-0da71265d84b587c7159cd82708ca60ad050dd4c.tar.gz |
H264 decoder & demuxer
Originally committed as revision 1732 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/raw.c')
-rw-r--r-- | libavformat/raw.c | 28 |
1 files changed, 28 insertions, 0 deletions
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); |