[FFmpeg-devel] [PATCH] ffmpeg: simplify mid-stream reconfiguration when libavfilter is disabled
stefano.sabatini-lala at poste.it
Sat May 7 02:49:17 CEST 2011
On date Saturday 2011-05-07 02:17:50 +0200, Michael Niedermayer encoded:
> On Sat, May 07, 2011 at 01:38:12AM +0200, Stefano Sabatini wrote:
> > On date Friday 2011-05-06 11:16:00 +0200, Stefano Sabatini encoded:
> > > Implement lazy initialization of the image resample context, so that
> > > the initialization code does not need to be duplicated.
> > >
> > > Also manage the case in which resample/size change mid-stream. For
> > > each packet the code computes if resampling is needed.
> > >
> > > Previously the resample check was done only at the initialization, in
> > > case size/format changed and no resample was detected at the init
> > > stage ffmpeg was silently exiting.
> > > ---
> > > ffmpeg.c | 41 +++++++++++++++++------------------------
> > > 1 files changed, 17 insertions(+), 24 deletions(-)
> > ping
> Feel free to do whatever you need to the non-avfilter code.
> few people use that and we will probably drop it sooner or later i
> suspect unless someone wants to maintain it.
Uhm ok, I needed to remove the if (!ost->video_resample) -> exit
condition for the following patches, and while at it I also fixed the
non-libavfilter path (which I like to support while it has still some
advantage over the libavfilter path - no memcpy).
I'll apply the whole patchset tomorrow.
FFmpeg = Funny and Fiendish Meaningless Proud Eccentric Goblin
More information about the ffmpeg-devel