diff options
author | Caligula useraccount <caligula@sarijopen.student.utwente.nl> | 2015-06-08 03:28:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-08 03:36:22 +0200 |
commit | 51ac1f616f5863c7bd32e04496339b7c2d27880f (patch) | |
tree | 5c89ae551456d0c2c6abd07ae414fc8b444d1a6e /libavformat/rawenc.c | |
parent | 990605768c86eb3281c3a232df2d81ee5d3c6c41 (diff) | |
download | ffmpeg-51ac1f616f5863c7bd32e04496339b7c2d27880f.tar.gz |
avformat: Add single jpeg muxer
Needed to fix Ticket4218
Based on patch by: Otávio Ribeiro
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rawenc.c')
-rw-r--r-- | libavformat/rawenc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c index 9b77cdcab2..e95cb6151d 100644 --- a/libavformat/rawenc.c +++ b/libavformat/rawenc.c @@ -250,6 +250,17 @@ AVOutputFormat ff_mjpeg_muxer = { .write_packet = ff_raw_write_packet, .flags = AVFMT_NOTIMESTAMPS, }; + +AVOutputFormat ff_singlejpeg_muxer = { + .name = "singlejpeg", + .long_name = NULL_IF_CONFIG_SMALL("JPEG single image"), + .mime_type = "image/jpeg", + .audio_codec = AV_CODEC_ID_NONE, + .video_codec = AV_CODEC_ID_MJPEG, + .write_packet = ff_raw_write_packet, + .flags = AVFMT_NOTIMESTAMPS, + .write_header = force_one_stream, +}; #endif #if CONFIG_MLP_MUXER |