Replace usage of the deprecated av_pix_fmt_descriptors array with av_pix_fmt_desc_get

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Hendrik Leppkes
2012-10-20 06:43:48 +02:00
committed by Michael Niedermayer
parent 2c5b92fe90
commit 79393a8363
17 changed files with 22 additions and 22 deletions

View File

@@ -153,7 +153,7 @@ void* decode_thread(void *arg)
{
AVCodecContext *avctx = (AVCodecContext*)arg;
StagefrightContext *s = (StagefrightContext*)avctx->priv_data;
const AVPixFmtDescriptor *pix_desc = &av_pix_fmt_descriptors[avctx->pix_fmt];
const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(avctx->pix_fmt);
Frame* frame;
MediaBuffer *buffer;
int32_t w, h;