Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit 94cb3e9

Browse files
committed
avcodec: revert some changes that weren't pertintent to 2.8
1 parent 0b12a47 commit 94cb3e9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: src/avcodec/codec.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,6 @@ pub struct AVPacket {
670670
pub flags: c_int,
671671
pub side_data: *mut AVPacketSideData,
672672
pub side_data_elems: c_int,
673-
#[cfg(feature = "ff_api_convergence_duration_is_defined")] // see FFmpeg commit b01891a9 (no other way to distinguish size of duration field)
674-
pub duration: int64_t,
675-
#[cfg(not(feature = "ff_api_convergence_duration_is_defined"))]
676673
pub duration: c_int,
677674
#[cfg(feature = "ff_api_destruct_packet")]
678675
pub destruct: Option<extern fn(*mut AVPacket)>,
@@ -935,7 +932,7 @@ pub struct AVCodecContext {
935932
pub priv_data: *mut c_void,
936933
pub internal: *mut AVCodecInternal,
937934
pub opaque: *mut c_void,
938-
pub bit_rate: int64_t,
935+
pub bit_rate: c_int,
939936
pub bit_rate_tolerance: c_int,
940937
pub global_quality: c_int,
941938
pub compression_level: c_int,

0 commit comments

Comments
 (0)