<commit_before>// Copyright 2022 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

pub const AV_NOPTS_VALUE: u64 = 0x8000000000000000;<commit_msg>media: ffmpeg: Add binding to obtain the required buffer alignment.<commit_after>// Copyright 2022 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

use crate::ffi;

pub const AV_NOPTS_VALUE: u64 = 0x8000000000000000;

/// Get the maximum data alignment that may be required by FFmpeg.
/// This could change depending on FFmpeg's build configuration (AVX etc.).
pub fn max_buffer_alignment() -> usize {
    // Safe because this function has no side effects and just returns an integer.
    unsafe { ffi::av_cpu_max_align() as usize }
}
{'fraction_non_alphanumeric': 0.07361268403171008, 'fraction_numerical': 0.052095130237825596, 'mean_word_length': 3.911111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2613933', 'n_tokens_mistral': 284, 'n_tokens_neox': 244, 'n_words': 120}