mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
avformat: Add single jpeg muxer
Needed to fix Ticket4218 Based on patch by: Otávio Ribeiro Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
990605768c
commit
51ac1f616f
@ -400,6 +400,7 @@ OBJS-$(CONFIG_SEGAFILM_DEMUXER) += segafilm.o
|
||||
OBJS-$(CONFIG_SEGMENT_MUXER) += segment.o
|
||||
OBJS-$(CONFIG_SHORTEN_DEMUXER) += rawdec.o
|
||||
OBJS-$(CONFIG_SIFF_DEMUXER) += siff.o
|
||||
OBJS-$(CONFIG_SINGLEJPEG_MUXER) += rawenc.o
|
||||
OBJS-$(CONFIG_SMACKER_DEMUXER) += smacker.o
|
||||
OBJS-$(CONFIG_SMJPEG_DEMUXER) += smjpegdec.o smjpeg.o
|
||||
OBJS-$(CONFIG_SMJPEG_MUXER) += smjpegenc.o smjpeg.o
|
||||
|
@ -273,6 +273,7 @@ void av_register_all(void)
|
||||
REGISTER_MUXER (SEGMENT, stream_segment);
|
||||
REGISTER_DEMUXER (SHORTEN, shorten);
|
||||
REGISTER_DEMUXER (SIFF, siff);
|
||||
REGISTER_MUXER (SINGLEJPEG, singlejpeg);
|
||||
REGISTER_DEMUXER (SLN, sln);
|
||||
REGISTER_DEMUXER (SMACKER, smacker);
|
||||
REGISTER_MUXDEMUX(SMJPEG, smjpeg);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user