summaryrefslogtreecommitdiff
path: root/ffserver_config.c
diff options
context:
space:
mode:
authorCaligula useraccount <caligula@sarijopen.student.utwente.nl>2015-06-08 03:32:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-08 03:36:22 +0200
commit3b89a673155fa3863e13f3595d651f37b024e6c5 (patch)
treef373843ff5fbf59caff9c9ea8279857374557a05 /ffserver_config.c
parent51ac1f616f5863c7bd32e04496339b7c2d27880f (diff)
downloadffmpeg-3b89a673155fa3863e13f3595d651f37b024e6c5.tar.gz
ffserver: Use singlejpeg muxer for jpeg
Fixes Ticket4218 Based on patch by: Otávio Ribeiro Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffserver_config.c')
-rw-r--r--ffserver_config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ffserver_config.c b/ffserver_config.c
index 017af48434..06bd8ac44a 100644
--- a/ffserver_config.c
+++ b/ffserver_config.c
@@ -862,8 +862,10 @@ static int ffserver_parse_config_stream(FFServerConfig *config, const char *cmd,
} else {
stream->stream_type = STREAM_TYPE_LIVE;
/* JPEG cannot be used here, so use single frame MJPEG */
- if (!strcmp(arg, "jpeg"))
- strcpy(arg, "mjpeg");
+ if (!strcmp(arg, "jpeg")) {
+ strcpy(arg, "singlejpeg");
+ stream->single_frame=1;
+ }
stream->fmt = ffserver_guess_format(arg, NULL, NULL);
if (!stream->fmt)
ERROR("Unknown Format: '%s'\n", arg);