[FFmpeg-devel] [PATCH]Improve pix_fmt detection for the native jpeg2000 decoder

Michael Niedermayer michaelni at gmx.at
Sat Jul 13 01:02:37 CEST 2013


On Sat, Jul 13, 2013 at 12:35:47AM +0200, Michael Niedermayer wrote:
> On Sat, Jul 06, 2013 at 03:34:50PM +0200, Carl-Eugen Hoyos wrote:
> > Hi!
> > 
> > Attached patch fixes ticket #2683 for me to some degree (-vcodec
> > libopenjpeg was implicitely used before, it has to be passed
> > explicitely now), heavily based on a patch by Michael Bradshaw.
> > 
> > Now with attachment.
> > 
> > Please review, Carl Eugen
> 
> >  jpeg2000dec.c |  147 ++++++++++++++++++++++++++++++++++++++++++++++++----------
> >  1 file changed, 122 insertions(+), 25 deletions(-)
> > c561e9597e56b6d4d57e38b871c0c5aeffa05ad8  patchjpeg2000.diff
> 
> ffplay j2kreffile/file9.jp2
> segfaults

removing the buggy av_log and adding AV_PIX_FMT_GRAY8 to the RGB
formats maintains the "working" status of this file

also the colour_space code is missing a sane error message if it
fails to find any pixel format (happens for some files)

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- 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/20130713/cb56291e/attachment.asc>


More information about the ffmpeg-devel mailing list