mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 07:37:20 +08:00
16 lines
298 B
Go
16 lines
298 B
Go
// Copyright (c) 2023 QRTC. All rights reserved.
|
|
// Use of this source code is governed by a MIT
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package ffmpeg
|
|
|
|
/*
|
|
#include <libavutil/macros.h>
|
|
*/
|
|
import "C"
|
|
|
|
// FFALIGN
|
|
func FFALIGN[T Integer](x, a T) T {
|
|
return ((x) + (a) - 1) & ^((a) - 1)
|
|
}
|