diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2002-10-14 17:55:34 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2002-10-14 17:55:34 +0000 |
commit | 87bdd3e535073aab65c4ca48a946e9a4991d7f05 (patch) | |
tree | 76712fbb5512a9dab99f6956d7e5598d38f22435 /libav/raw.c | |
parent | 7002684e69145236e2ee4e4156312430ae70eeb8 (diff) | |
download | ffmpeg-87bdd3e535073aab65c4ca48a946e9a4991d7f05.tar.gz |
added null output format for speed testing
Originally committed as revision 1036 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/raw.c')
-rw-r--r-- | libav/raw.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libav/raw.c b/libav/raw.c index d3ee287a52..d485eeac83 100644 --- a/libav/raw.c +++ b/libav/raw.c @@ -443,6 +443,31 @@ AVOutputFormat rawvideo_oformat = { raw_write_trailer, }; +static int null_write_packet(struct AVFormatContext *s, + int stream_index, + unsigned char *buf, int size, int force_pts) +{ + return 0; +} + +AVOutputFormat null_oformat = { + "null", + "null video format", + NULL, + NULL, + 0, +#ifdef WORDS_BIGENDIAN + CODEC_ID_PCM_S16BE, +#else + CODEC_ID_PCM_S16LE, +#endif + CODEC_ID_RAWVIDEO, + raw_write_header, + null_write_packet, + raw_write_trailer, + flags: AVFMT_NOFILE | AVFMT_RAWPICTURE, +}; + int raw_init(void) { av_register_input_format(&mp3_iformat); @@ -481,5 +506,7 @@ int raw_init(void) av_register_input_format(&rawvideo_iformat); av_register_output_format(&rawvideo_oformat); + + av_register_output_format(&null_oformat); return 0; } |