Re: [FFmpeg-devel] [PATCH] lavc/utils: use AVPixFmtDescriptor to probe palette formats

2015-12-15 Thread Matthieu Bouron
On Mon, Dec 14, 2015 at 6:18 PM, Michael Niedermayer wrote: > On Mon, Dec 14, 2015 at 05:49:48PM +0100, Matthieu Bouron wrote: > > From: Matthieu Bouron > > > > Also use the input frame format instead of the AVCodecContext one > according > > to the documentation of AVCodecContext.get_buffer2().

Re: [FFmpeg-devel] [PATCH] lavc/utils: use AVPixFmtDescriptor to probe palette formats

2015-12-14 Thread Michael Niedermayer
On Mon, Dec 14, 2015 at 05:49:48PM +0100, Matthieu Bouron wrote: > From: Matthieu Bouron > > Also use the input frame format instead of the AVCodecContext one according > to the documentation of AVCodecContext.get_buffer2(). > --- > > The current code rely on the fact that avpriv_set_systematic_

[FFmpeg-devel] [PATCH] lavc/utils: use AVPixFmtDescriptor to probe palette formats

2015-12-14 Thread Matthieu Bouron
From: Matthieu Bouron Also use the input frame format instead of the AVCodecContext one according to the documentation of AVCodecContext.get_buffer2(). --- The current code rely on the fact that avpriv_set_systematic_pal2 will error out if the format is not a palette one (and that the error code