[FFmpeg-devel] [PATCH] ffserver: use avcodec_get_context_defaults3()

Michael Niedermayer michaelni at gmx.at
Tue Feb 7 05:53:40 CET 2012


On Tue, Feb 07, 2012 at 04:10:38AM +0000, Paul B Mahol wrote:
> On 2/6/12, Michael Niedermayer <michaelni at gmx.at> wrote:
> > On Sun, Feb 05, 2012 at 10:53:31PM +0000, Paul B Mahol wrote:
> >>
> >> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> >> ---
> >>  ffserver.c |    4 ++--
> >>  1 files changed, 2 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/ffserver.c b/ffserver.c
> >> index 5531aac..f198571 100644
> >> --- a/ffserver.c
> >> +++ b/ffserver.c
> >> @@ -4221,8 +4221,8 @@ static int parse_ffconfig(const char *filename)
> >>                  }
> >>
> >>                  stream->fmt = ffserver_guess_format(NULL,
> >> stream->filename, NULL);
> >> -                avcodec_get_context_defaults2(&video_enc,
> >> AVMEDIA_TYPE_VIDEO);
> >> -                avcodec_get_context_defaults2(&audio_enc,
> >> AVMEDIA_TYPE_AUDIO);
> >> +                avcodec_get_context_defaults3(&video_enc, NULL);
> >> +                avcodec_get_context_defaults3(&audio_enc, NULL);
> >
> > has this been tested ?
> >
> > iam asking as this is not 100% equivalent ...
> 
> Tested and it does not break anything which is not already broken.

applied

please report the broken things you found unless they are already on
trac

thx

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

There seems to be only one solution to NIH syndrom, ... a shooting squad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120207/5e5aa632/attachment.asc>


More information about the ffmpeg-devel mailing list