[Ffmpeg-cvslog] CVS: ffmpeg ffserver.c,1.94,1.95
Michael Niedermayer CVS
michael
Mon Jul 18 11:03:00 CEST 2005
- Previous message: [Ffmpeg-cvslog] CVS: ffmpeg/libavformat 4xm.c, 1.18, 1.19 amr.c, 1.7, 1.8 asf-enc.c, 1.71, 1.72 asf.c, 1.81, 1.82 au.c, 1.20, 1.21 audio.c, 1.24, 1.25 avformat.h, 1.127, 1.128 avidec.c, 1.72, 1.73 avienc.c, 1.109, 1.110 dv.c, 1.43, 1.44 electronicarts.c, 1.2, 1.3 ffm.c, 1.42, 1.43 flic.c, 1.6, 1.7 flvdec.c, 1.19, 1.20 flvenc.c, 1.16, 1.17 gif.c, 1.19, 1.20 gifdec.c, 1.8, 1.9 grab.c, 1.34, 1.35 idcin.c, 1.6, 1.7 idroq.c, 1.9, 1.10 img.c, 1.40, 1.41 img2.c, 1.16, 1.17 ipmovie.c, 1.12, 1.13 matroska.c, 1.13, 1.14 mmf.c, 1.1, 1.2 mov.c, 1.88, 1.89 movenc.c, 1.42, 1.43 mp3.c, 1.9, 1.10 mpeg.c, 1.87, 1.88 mpegts.c, 1.30, 1.31 mpegtsenc.c, 1.8, 1.9 nsvdec.c, 1.8, 1.9 nut.c, 1.52, 1.53 ogg.c, 1.22, 1.23 ogg2.c, 1.8, 1.9 oggparseflac.c, 1.1, 1.2 oggparsetheora.c, 1.2, 1.3 oggparsevorbis.c, 1.3, 1.4 psxstr.c, 1.8, 1.9 raw.c, 1.56, 1.57 rm.c, 1.47, 1.48 rtp.c, 1.18, 1.19 rtsp.c, 1.22, 1.23 segafilm.c, 1.8, 1.9 sierravmd.c, 1.8, 1.9 sol.c, 1.3, 1.4 swf.c, 1.27, 1.28 utils.c, 1.158, 1.159 wav.c, 1.52, 1.53 wc3movie.c, 1.11, 1.12 westwood.c, 1.7, 1.8 yuv4mpeg.c, 1.23, 1.24
- Next message: [Ffmpeg-cvslog] CVS: ffmpeg/tests test.conf,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/ffmpeg/ffmpeg
In directory mail:/var2/tmp/cvs-serv18493
Modified Files:
ffserver.c
Log Message:
ffserver segfault & other fatal failure fixes
Index: ffserver.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/ffserver.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- ffserver.c 17 Jul 2005 22:24:35 -0000 1.94
+++ ffserver.c 18 Jul 2005 09:02:56 -0000 1.95
@@ -2000,6 +2000,7 @@
AVStream *st;
AVStream *src;
st = av_mallocz(sizeof(AVStream));
+ st->codec= avcodec_alloc_context();
c->fmt_ctx.streams[i] = st;
/* if file or feed, then just take streams from FFStream struct */
if (!c->stream->feed ||
@@ -3138,6 +3139,7 @@
st = av_mallocz(sizeof(AVStream));
if (!st)
goto fail;
+ st->codec= avcodec_alloc_context();
ctx->nb_streams = 1;
ctx->streams[0] = st;
@@ -3221,6 +3223,7 @@
fst = av_mallocz(sizeof(AVStream));
if (!fst)
return NULL;
+ fst->codec= avcodec_alloc_context();
fst->priv_data = av_mallocz(sizeof(FeedData));
memcpy(fst->codec, codec, sizeof(AVCodecContext));
fst->codec->coded_frame = &dummy_frame;
@@ -3664,6 +3667,7 @@
st = av_mallocz(sizeof(AVStream));
if (!st)
return;
+ st->codec = avcodec_alloc_context();
stream->streams[stream->nb_streams++] = st;
memcpy(st->codec, av, sizeof(AVCodecContext));
}
@@ -3971,7 +3975,7 @@
stream->stream_type = STREAM_TYPE_LIVE;
/* jpeg cannot be used here, so use single frame jpeg */
if (!strcmp(arg, "jpeg"))
- strcpy(arg, "singlejpeg");
+ strcpy(arg, "mjpeg");
stream->fmt = guess_stream_format(arg, NULL, NULL);
if (!stream->fmt) {
fprintf(stderr, "%s:%d: Unknown Format: %s\n",
- Previous message: [Ffmpeg-cvslog] CVS: ffmpeg/libavformat 4xm.c, 1.18, 1.19 amr.c, 1.7, 1.8 asf-enc.c, 1.71, 1.72 asf.c, 1.81, 1.82 au.c, 1.20, 1.21 audio.c, 1.24, 1.25 avformat.h, 1.127, 1.128 avidec.c, 1.72, 1.73 avienc.c, 1.109, 1.110 dv.c, 1.43, 1.44 electronicarts.c, 1.2, 1.3 ffm.c, 1.42, 1.43 flic.c, 1.6, 1.7 flvdec.c, 1.19, 1.20 flvenc.c, 1.16, 1.17 gif.c, 1.19, 1.20 gifdec.c, 1.8, 1.9 grab.c, 1.34, 1.35 idcin.c, 1.6, 1.7 idroq.c, 1.9, 1.10 img.c, 1.40, 1.41 img2.c, 1.16, 1.17 ipmovie.c, 1.12, 1.13 matroska.c, 1.13, 1.14 mmf.c, 1.1, 1.2 mov.c, 1.88, 1.89 movenc.c, 1.42, 1.43 mp3.c, 1.9, 1.10 mpeg.c, 1.87, 1.88 mpegts.c, 1.30, 1.31 mpegtsenc.c, 1.8, 1.9 nsvdec.c, 1.8, 1.9 nut.c, 1.52, 1.53 ogg.c, 1.22, 1.23 ogg2.c, 1.8, 1.9 oggparseflac.c, 1.1, 1.2 oggparsetheora.c, 1.2, 1.3 oggparsevorbis.c, 1.3, 1.4 psxstr.c, 1.8, 1.9 raw.c, 1.56, 1.57 rm.c, 1.47, 1.48 rtp.c, 1.18, 1.19 rtsp.c, 1.22, 1.23 segafilm.c, 1.8, 1.9 sierravmd.c, 1.8, 1.9 sol.c, 1.3, 1.4 swf.c, 1.27, 1.28 utils.c, 1.158, 1.159 wav.c, 1.52, 1.53 wc3movie.c, 1.11, 1.12 westwood.c, 1.7, 1.8 yuv4mpeg.c, 1.23, 1.24
- Next message: [Ffmpeg-cvslog] CVS: ffmpeg/tests test.conf,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the ffmpeg-cvslog
mailing list