Skip to content

Commit

Permalink
Fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Balanukhin committed Apr 18, 2024
1 parent 38c1ae4 commit 1a7e4c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<PackageId>$(AssemblyName)</PackageId>
<Version>6.1.0.1</Version>
<Version>7.0</Version>
<Authors>Ruslan Balanukhin</Authors>
<Company>Rationale One</Company>
<Product>FFmpeg.AutoGen</Product>
Expand Down
8 changes: 4 additions & 4 deletions FFmpeg.AutoGen.Examples.Encode/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,16 +187,16 @@ static int select_sample_rate(AVCodec* codec)
/* select layout with the highest channel count */
static ulong select_channel_layout(AVCodec* codec)
{
ulong* p;
var p;
ulong best_ch_layout = 0;
int best_nb_channels = 0;

if (codec->channel_layouts == null)
if (codec->@ch_layouts == null)
return ffmpeg.AV_CH_LAYOUT_STEREO;

p = codec->channel_layouts;
p = codec->@ch_layouts;
while (*p != 0) {
int nb_channels = ffmpeg.av_get_channel_layout_nb_channels(*p);
int nb_channels = ffmpeg.av_buffersink_get_channels(*p);

if (nb_channels > best_nb_channels) {
best_ch_layout = *p;
Expand Down

0 comments on commit 1a7e4c3

Please sign in to comment.