[FFmpeg-devel] [PATCH] Use correct colorspace in Cinepak decoder.

Michael Niedermayer michaelni at gmx.at
Wed Feb 20 02:16:06 CET 2013

On Tue, Feb 19, 2013 at 05:08:21PM +0100, u-bo1b at 0w.se wrote:
> On Tue, Feb 19, 2013 at 01:55:55PM +0100, Michael Niedermayer wrote:
> > > A safe and efficient approach would be to be able to adjust the frame
> > > size up to a multiple of 4 (mplayer actually seems to do that?).
> > > Is there any way to properly set this from inside the decoder?
> > 
> > Please see avcodec_set_dimensions()
> > and
> > avcodec_align_dimensions2()
> Oh I see, this was an unknown for me "safety net" which kept the old
> decoder alive, at least when used from the ffmpeg/ffplay programs.
> It's a pity that this is hardcoded in a place which a casual codec
> developer may miss. (Is it safe to assume that a program using a codec
> implicitely allocates the frame using avcodec_align_dimensions2()?)

an application that overrides the default allocation has to consier
that yes. If all do i dont know

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 1
"Used only once"    - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- 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/20130220/eba790ad/attachment.asc>

More information about the ffmpeg-devel mailing list