Skip to content

Commit

Permalink
Minor fixes to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBennettPIO committed Aug 26, 2017
1 parent f5df1a2 commit 484a54e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/ffmpeg/libavformat/avformat.d
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ struct AVStream {
* decoding: set by libavformat
* encoding: set by the user, replaced by libavformat if left unset
*/
int avstream_id;
int id;
/**
* Codec context associated with this stream. Allocated and freed by
* libavformat.
Expand Down Expand Up @@ -1862,7 +1862,7 @@ struct AVPacketList {
/**
* Return the LIBAVFORMAT_VERSION_INT constant.
*/
ubyte avformat_version();
uint avformat_version();

/**
* Return the libavformat build-time configuration.
Expand Down
4 changes: 2 additions & 2 deletions source/ffmpeg/libswresample/audioconvert.d
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ffmpeg.libswresample.audioconvert;
import std.stdint;
import ffmpeg.libavutil.avutil;
import ffmpeg.libavresample.audio_data;
import ffmpeg.libswresample.swresample_internal;
import ffmpeg.libswresample.swresample_version;

@nogc nothrow extern(C):
Expand Down Expand Up @@ -47,4 +47,4 @@ void swri_audio_convert_free(AudioConvert **ctx);
* @param[in] in array of input buffers for each channel
* @param len length of audio frame size (measured in samples)
*/
int swri_audio_convert(AudioConvert *ctx, AudioData *out_a_b, AudioData *in_a_b, int len);
int swri_audio_convert(AudioConvert *ctx, AudioData *out_a_b, AudioData *in_a_b, int len);
14 changes: 13 additions & 1 deletion source/ffmpeg/libswresample/swresample_internal.d
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
module ffmpeg.libswresample.swresample_internal;

import ffmpeg.libswresample.swresample_version;

import std.stdint;

import ffmpeg.libavutil.channel_layout;
import ffmpeg.libavutil.samplefmt;

@nogc nothrow extern(C):

Expand All @@ -11,7 +15,15 @@ enum SQRT3_2 = 1.22474487139158904909; /* sqrt(3/2) */

enum NS_TAPS = 20;


struct AudioData{
uint8_t[SWR_CH_MAX] *ch; ///< samples buffer per channel
uint8_t *data; ///< samples buffer
int ch_count; ///< number of channels
int bps; ///< bytes per sample
int count; ///< number of samples
int planar; ///< 1 if planar audio, 0 otherwise
AVSampleFormat fmt; ///< sample format
}



0 comments on commit 484a54e

Please sign in to comment.