[FFmpeg-devel] [PATCH 4/4] Implement ffserver generic metadata settings in the stream.

Stefano Sabatini stefano.sabatini-lala
Sat Apr 24 15:31:00 CEST 2010


On date Tuesday 2010-04-13 00:39:27 +0200, Stefano Sabatini encoded:
> On date Tuesday 2010-04-13 00:25:48 +0200, Aurelien Jacobs encoded:
> > On Sun, Apr 11, 2010 at 08:36:22PM +0200, Stefano Sabatini wrote:
> > > This patch is absolutely untested, if someone wants to try it and report back
> > > that's fine, otherwise maybe I'll do it myself but who can say.
> > > 
> > > Regards.
> > > 
> > > ---
> > >  ffserver.c |   20 ++++++++++++++++++++
> > >  1 files changed, 20 insertions(+), 0 deletions(-)
> > > 
> > > diff --git a/ffserver.c b/ffserver.c
> > > index 4404511..7b60517 100644
> > > --- a/ffserver.c
> > > +++ b/ffserver.c
> > > [...]
> > > +                else {
> > > +                    *mid++= 0;
> > > +                    stream->metadata = av_realloc(stream->metadata,
> > > +                                                  sizeof(*stream->metadata) * (++stream->metadata_count));
> > > +                    stream->metadata[stream->metadata_count-1].key  = av_strdup(arg);
> > > +                    stream->metadata[stream->metadata_count-1].value= av_strdup(mid);
> > > +                }
> > > +            }
> > 
> > Looks like you are re-implementing av_metadata_set2()...
> 
> Ehm I copypasted that code from ffmpeg.c...

Updated.
-- 
FFmpeg = Foolish and Fundamental Multipurpose Practical Exploitable Genius



More information about the ffmpeg-devel mailing list