diff options
author | Alexis Ballier <aballier@gentoo.org> | 2009-03-08 20:30:50 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2009-03-08 20:30:50 +0100 |
commit | e2e4a31eef68c45ed4954d25b6b92eabbafef2ce (patch) | |
tree | e630af09e1782d0cb1c889a74b01028c56e755f1 /src | |
parent | 7c9b436f8f40aa3f2f75bf2ecad543758d897330 (diff) | |
download | xine-lib-e2e4a31eef68c45ed4954d25b6b92eabbafef2ce.tar.gz xine-lib-e2e4a31eef68c45ed4954d25b6b92eabbafef2ce.tar.bz2 |
Fix build with libavutil >= 50.0.0
PIX_FMT_RGBA32 was #defined to PIX_FMT_RGB32 since 2006.
Diffstat (limited to 'src')
-rw-r--r-- | src/combined/ffmpeg/ff_video_decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/combined/ffmpeg/ff_video_decoder.c b/src/combined/ffmpeg/ff_video_decoder.c index e119b2b21..c272bc91a 100644 --- a/src/combined/ffmpeg/ff_video_decoder.c +++ b/src/combined/ffmpeg/ff_video_decoder.c @@ -588,7 +588,7 @@ static void ff_convert_frame(ff_video_decoder_t *this, vo_frame_t *img) { img->width, this->bih.biHeight); - } else if (this->context->pix_fmt == PIX_FMT_RGBA32) { + } else if (this->context->pix_fmt == PIX_FMT_RGB32) { int x, plane_ptr = 0; uint32_t *argb_pixels; @@ -1304,7 +1304,7 @@ static void ff_handle_buffer (ff_video_decoder_t *this, buf_element_t *buf) { /* initialize the colorspace converter */ if (!this->cs_convert_init) { - if ((this->context->pix_fmt == PIX_FMT_RGBA32) || + if ((this->context->pix_fmt == PIX_FMT_RGB32) || (this->context->pix_fmt == PIX_FMT_RGB565) || (this->context->pix_fmt == PIX_FMT_RGB555) || (this->context->pix_fmt == PIX_FMT_BGR24) || |