[FFmpeg-devel] [PATCH] ffserver rtsp bug fixes

Luca Abeni lucabe72
Mon May 31 09:17:31 CEST 2010


An additional minor comment:
 > Index: rtpenc.c
 > ===================================================================
 > --- rtpenc.c	(revision 23363)
 > +++ rtpenc.c	(working copy)
 > @@ -157,6 +157,12 @@
 >          s->buf_ptr = s->buf;
 >          break;
      }
 > +    if (st->codec->codec_id == CODEC_ID_H264 && st->codec->extradata_size > 0) {
 > +        /* copied from h264.c ff_h264_decode_init() */
[...]

You insert this code immediately after "switch(st->codec->codec_id) {":
cannot you put it in the switch, under a "case CODEC_ID_H264"?


			Luca



More information about the ffmpeg-devel mailing list