diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-10-12 15:56:34 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-10-12 15:58:37 +0000 |
commit | 82eba2266739dcd64f01ac22283c9bfa46607512 (patch) | |
tree | cb6ee9ba0d04d2240b1431dcb93b3124a1c0cc99 /libavdevice/caca.c | |
parent | 0d002de4a452c0b270364ac0424368d507629463 (diff) | |
download | ffmpeg-82eba2266739dcd64f01ac22283c9bfa46607512.tar.gz |
lavd: do not use av_pix_fmt_descriptors directly
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavdevice/caca.c')
-rw-r--r-- | libavdevice/caca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/caca.c b/libavdevice/caca.c index 6cd0306d18..dd20ba3636 100644 --- a/libavdevice/caca.c +++ b/libavdevice/caca.c @@ -140,7 +140,7 @@ static int caca_write_header(AVFormatContext *s) goto fail; } - bpp = av_get_bits_per_pixel(&av_pix_fmt_descriptors[encctx->pix_fmt]); + bpp = av_get_bits_per_pixel(av_pix_fmt_desc_get(avctx->pix_fmt)); c->dither = caca_create_dither(bpp, encctx->width, encctx->height, bpp / 8 * encctx->width, 0x0000ff, 0x00ff00, 0xff0000, 0); |