Skip to content

Commit

Permalink
upgrade pkgs, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Nov 15, 2023
1 parent 83ceade commit 3c7fe69
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ For code generations, `Sdcb.FFmpeg` have benifits from:
* Auto download FFmpeg binaries from known existing sources

## NuGet Packages
* FFmpeg 6.1:
| Package | Link |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Sdcb.FFmpeg | [![NuGet](https://img.shields.io/nuget/v/Sdcb.FFmpeg.svg)](https://nuget.org/packages/Sdcb.FFmpeg) |
| Sdcb.FFmpeg.runtime.windows-x64 | [![NuGet](https://img.shields.io/nuget/v/Sdcb.FFmpeg.runtime.windows-x64.svg)](https://nuget.org/packages/Sdcb.FFmpeg.runtime.windows-x64) |

* FFmpeg 4.4.3:
| Package | Link |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -32,8 +38,8 @@ For code generations, `Sdcb.FFmpeg` have benifits from:
* FFmpeg 6.0:
| Package | Link |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Sdcb.FFmpeg | [![NuGet](https://img.shields.io/nuget/vpre/Sdcb.FFmpeg.svg)](https://nuget.org/packages/Sdcb.FFmpeg) |
| Sdcb.FFmpeg.runtime.windows-x64 | [![NuGet](https://img.shields.io/nuget/vpre/Sdcb.FFmpeg.runtime.windows-x64.svg)](https://nuget.org/packages/Sdcb.FFmpeg.runtime.windows-x64) |
| Sdcb.FFmpeg | [![NuGet](https://img.shields.io/badge/nuget-6.0-blue)](https://nuget.org/packages/Sdcb.FFmpeg/6.0.26) |
| Sdcb.FFmpeg.runtime.windows-x64 | [![NuGet](https://img.shields.io/badge/nuget-6.0-blue)](https://nuget.org/packages/Sdcb.FFmpeg.runtime.windows-x64/6.0.26) |


## Install
Expand Down
2 changes: 1 addition & 1 deletion src/Sdcb.FFmpeg.Tests/Sdcb.FFmpeg.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="Sdcb.FFmpeg.runtime.windows-x64" Version="6.0.26" />
<PackageReference Include="Sdcb.FFmpeg.runtime.windows-x64" Version="6.1.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
Expand Down
3 changes: 3 additions & 0 deletions src/Sdcb.FFmpeg/Formats/MediaStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@ public MediaStream(FormatContext formatContext, Codec? codec = null) : this(avfo
/// <summary>
/// <see cref="av_stream_add_side_data(AVStream*, AVPacketSideDataType, byte*, ulong)"/>
/// </summary>
[Obsolete("use av_packet_side_data_add() with the stream's \"codecpar side data\"")]
public void AddSideData(AVPacketSideDataType type, DataPointer data) =>
av_stream_add_side_data(this, type, (byte*)data.Pointer, (ulong)data.Length).ThrowIfError();

/// <summary>
/// <see cref="av_stream_new_side_data(AVStream*, AVPacketSideDataType, ulong)"/>
/// </summary>
[Obsolete("use av_packet_side_data_new() with the stream's \"codecpar side data\"")]
public IntPtr NewSideData(AVPacketSideDataType type, long size) =>
NativeUtils.NotNull((IntPtr)av_stream_new_side_data(this, type, (ulong)size));

/// <summary>
/// <see cref="av_stream_get_side_data(AVStream*, AVPacketSideDataType, ulong*)"/>
/// </summary>
[Obsolete("use av_packet_side_data_get() with the stream's \"codecpar side data\"")]
public DataPointer GetSideData(AVPacketSideDataType type)
{
ulong size;
Expand Down
2 changes: 1 addition & 1 deletion src/Sdcb.FFmpeg/Sdcb.FFmpeg.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net6;net48</TargetFrameworks>
<PackageId>Sdcb.FFmpeg</PackageId>
<VersionPrefix>6.0.26</VersionPrefix>
<VersionPrefix>6.1.0</VersionPrefix>
<LangVersion>latest</LangVersion>
<Authors>sdcb,Ruslan Balanukhin</Authors>
<Copyright>Copyright © sdcb, Ruslan Balanukhin 2022 All rights reserved.</Copyright>
Expand Down

0 comments on commit 3c7fe69

Please sign in to comment.