History

{configure,avcodec/libx264}: remove separate x264_csp_bgr check

We already require X264_BUILD >= 118, which includes an unconditional definition of X264_CSP_BGR in itself, thus making this check effectively always true.

Jan Ekström committed 5 years ago

Commit f32f5641 parent 25d28f22 files · +1 −4Browse files

Unified · Split

2 files
  1. configure +1 −2
  2. libavcodec/libx264.c +0 −2
configure+1−2
@@ -3316,7 +3316,7 @@ libwebp_anim_encoder_deps="libwebp" · 3315 unmodified lines
33163316 libx262_encoder_deps="libx262"
33173317 libx264_encoder_deps="libx264"
33183318 libx264_encoder_select="atsc_a53"
3319−libx264rgb_encoder_deps="libx264 x264_csp_bgr"
3319+libx264rgb_encoder_deps="libx264"
33203320 libx264rgb_encoder_select="libx264_encoder"
33213321 libx265_encoder_deps="libx265"
33223322 libxavs_encoder_deps="libxavs"
@@ -6529,7 +6529,6 @@ enabled libx264 && { check_pkg_config libx264 x264 "stdint.h x264.h" x · 3206 unmodified lines
65296529 { require libx264 "stdint.h x264.h" x264_encoder_encode "-lx264 $pthreads_extralibs $libm_extralibs" &&
65306530 warn "using libx264 without pkg-config"; } } &&
65316531 require_cpp_condition libx264 x264.h "X264_BUILD >= 118" &&
6532− check_cpp_condition x264_csp_bgr x264.h "X264_CSP_BGR" &&
65336532 check_cpp_condition libx262 x264.h "X264_MPEG2"
65346533 enabled libx265 && require_pkg_config libx265 x265 x265.h x265_api_get &&
65356534 require_cpp_condition libx265 x265.h "X265_BUILD >= 70"
libavcodec/libx264.c+0−2
@@ -553,7 +553,6 @@ static int convert_pix_fmt(enum AVPixelFormat pix_fmt) · 552 unmodified lines
553553 case AV_PIX_FMT_YUVJ444P:
554554 case AV_PIX_FMT_YUV444P9:
555555 case AV_PIX_FMT_YUV444P10: return X264_CSP_I444;
556−#if CONFIG_LIBX264RGB_ENCODER
557556 case AV_PIX_FMT_BGR0:
558557 return X264_CSP_BGRA;
559558 case AV_PIX_FMT_BGR24:
@@ -561,7 +560,6 @@ static int convert_pix_fmt(enum AVPixelFormat pix_fmt) · 1 unmodified line
561560
562561 case AV_PIX_FMT_RGB24:
563562 return X264_CSP_RGB;
564−#endif
565563 case AV_PIX_FMT_NV12: return X264_CSP_NV12;
566564 case AV_PIX_FMT_NV16:
567565 case AV_PIX_FMT_NV20: return X264_CSP_NV16;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t