[FFmpeg-devel] [PATCH 4/5] ffserver: remove one avcodec_context_copy()

Michael Niedermayer michael at niedermayer.cc
Sat Dec 3 14:55:58 EET 2016


On Sat, Dec 03, 2016 at 12:49:28PM +0100, Andreas Cadhalpun wrote:
> On 03.12.2016 00:52, Michael Niedermayer wrote:
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  ffserver.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/ffserver.c b/ffserver.c
> > index 19c3ceda1a..3ff761f68f 100644
> > --- a/ffserver.c
> > +++ b/ffserver.c
> > @@ -2854,7 +2854,8 @@ static int http_receive_data(HTTPContext *c)
> >              for (i = 0; i < s->nb_streams; i++) {
> >                  LayeredAVStream *fst = feed->streams[i];
> >                  AVStream *st = s->streams[i];
> > -                avcodec_copy_context(fst->codec, st->codec);
> > +                avcodec_parameters_to_context(fst->codec, st->codecpar);
> > +                avcodec_parameters_from_context(fst->codecpar, fst->codec);
> >              }
> >  
> >              avformat_close_input(&s);
> > 
> 
> This is probably OK.

patchset applied up to and including this

thx


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161203/efaf5dc5/attachment.sig>


More information about the ffmpeg-devel mailing list