Commit 22ea95f6 authored by michael's avatar michael

remove -f singlejpeg as its identical to -f mjpeg


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4428 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2782673d
...@@ -65,44 +65,9 @@ static AVOutputFormat mpjpeg_format = { ...@@ -65,44 +65,9 @@ static AVOutputFormat mpjpeg_format = {
mpjpeg_write_trailer, mpjpeg_write_trailer,
}; };
/*************************************/
/* single frame JPEG */
static int single_jpeg_write_header(AVFormatContext *s)
{
return 0;
}
static int single_jpeg_write_packet(AVFormatContext *s, AVPacket *pkt)
{
put_buffer(&s->pb, pkt->data, pkt->size);
put_flush_packet(&s->pb);
return 1; /* no more data can be sent */
}
static int single_jpeg_write_trailer(AVFormatContext *s)
{
return 0;
}
static AVOutputFormat single_jpeg_format = {
"singlejpeg",
"single JPEG image",
"image/jpeg",
NULL, /* note: no extension to favorize jpeg multiple images match */
0,
CODEC_ID_NONE,
CODEC_ID_MJPEG,
single_jpeg_write_header,
single_jpeg_write_packet,
single_jpeg_write_trailer,
};
int jpeg_init(void) int jpeg_init(void)
{ {
av_register_output_format(&mpjpeg_format); av_register_output_format(&mpjpeg_format);
av_register_output_format(&single_jpeg_format);
return 0; return 0;
} }
#endif //CONFIG_ENCODERS #endif //CONFIG_ENCODERS
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment