]> git.sesse.net Git - ffmpeg/commit
imgconvert: change logic in avcodec_get_pix_fmt_loss()
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 24 Jul 2011 13:38:59 +0000 (15:38 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 26 Jul 2011 23:52:09 +0000 (01:52 +0200)
commite324619ca9294458892b29dfdbdcce9cb65363a7
treea848b68424ac4084f889e9a00a8e57d044511a4a
parent07f49ca1d1027f57400acbf7ca1aada9a1812648
imgconvert: change logic in avcodec_get_pix_fmt_loss()

Avoid the use of the brittle/inconsistent information in
PixFmtInfo.depth, and implement a possibly more robust logic which
exposes the information in pixdesc.

Also allow the removal of PixFmtInfo.depth, since this is the only use
of it.
libavcodec/imgconvert.c