X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=x264_speed_control.h;h=b0a1739d022e462c48c7e80e7b73b905fcdb6411;hb=8e86ae071c057a26e933b8452ac541050ba2cb9f;hp=bd58dcbf8773c6624706f23e6775ce2bc758bf0a;hpb=c574aef4437253dcf0e6c1fed4c9cab1033b33f9;p=nageru diff --git a/x264_speed_control.h b/x264_speed_control.h index bd58dcb..b0a1739 100644 --- a/x264_speed_control.h +++ b/x264_speed_control.h @@ -1,3 +1,6 @@ +#ifndef _X264_SPEED_CONTROL_H +#define _X264_SPEED_CONTROL_H 1 + // The x264 speed control tries to encode video at maximum possible quality // without skipping frames (at the expense of higher encoding latency and // less even output rates, although VBV is still respected). It does this @@ -137,3 +140,5 @@ private: std::atomic metric_x264_speedcontrol_idle_frames{0}; std::atomic metric_x264_speedcontrol_late_frames{0}; }; + +#endif // !defined(_X264_SPEED_CONTROL_H)