[FFmpeg-devel] [PATCH][RFC] variable frame sizes

Michael Niedermayer michaelni
Sat May 23 03:44:02 CEST 2009

On Thu, May 21, 2009 at 09:35:05PM -0700, Eric Buehl wrote:
> The only variable I added was "int resample_width" to complement the
> pre-existing "int resample_height".  True, this works as is, but it is
> reinitializing the scalar context many times (potentially every other frame)
> when scaling two streams of different input sizes.  A better solution would
> probably be to have multiple concurrent contexts, but this is much larger of
> an endeavour than I am looking for.

We seem to be missunderstnding each other,
you use global variables to build the scaler context in case of resolution
changes. These global variables should be correct during stream creation
for each stream but they will only be correct for one stream later, that
being the last stream ...
I dont think iam missing something here that could make it work ...

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is not what we do, but why we do it that matters.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090523/cd314b7d/attachment.pgp>

More information about the ffmpeg-devel mailing list