mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
ffmpeg: fix compilation for older FFMpeg versions
This commit is contained in:
parent
c1fbeaea51
commit
83f637ea9f
@ -117,9 +117,9 @@ init_from(FfmpegVideo *source) {
|
||||
_num_components = 1;
|
||||
_pixel_format = (int)AV_PIX_FMT_GRAY8;
|
||||
break;
|
||||
case AV_PIX_FMT_YA8:
|
||||
case AV_PIX_FMT_Y400A: // aka AV_PIX_FMT_YA8
|
||||
_num_components = 2;
|
||||
_pixel_format = (int)AV_PIX_FMT_YA8;
|
||||
_pixel_format = (int)AV_PIX_FMT_Y400A;
|
||||
break;
|
||||
default:
|
||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(_video_ctx->pix_fmt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user