diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-03-22 17:56:41 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-03-22 17:56:41 +0000 |
| commit | b1489d803be933eff43981f23b3540e9a0fb719f (patch) | |
| tree | e532c25a9aee30c863f4365694831cb724f65bb6 /rotord | |
| parent | 49993e6f9c77bf4c610b53e3abc4ce5651c7700b (diff) | |
still fighting with libavcodec
Diffstat (limited to 'rotord')
| -rw-r--r-- | rotord/rotor.cpp | 1 | ||||
| -rwxr-xr-x | rotord/rotor.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/rotord/rotor.cpp b/rotord/rotor.cpp index 81b0716..b8c5e2f 100644 --- a/rotord/rotor.cpp +++ b/rotord/rotor.cpp @@ -405,6 +405,7 @@ bool Render_context::load_audio(const string &filename,vector<base_audio_process //const auto processedLength = avcodec_decode_video2(avVideoCodec.get(), avFrame.get(), &isFrameAvailable, &packetToSend); const auto processedLength = avcodec_decode_audio4(audioCodec.get(), avFrame.get(), &isFrameAvailable, &packetToSend); + //utils.c line 2018 /* unsigned int bitsPerSample = av_get_bytes_per_sample(stream.codecContext->sample_fmt) * CHAR_BIT; // 16 or 32 unsigned int numberOfChannels = stream.codecContext->channels; // 1 for mono, 2 for stereo, or more diff --git a/rotord/rotor.h b/rotord/rotor.h index 5667b62..c08371d 100755 --- a/rotord/rotor.h +++ b/rotord/rotor.h @@ -39,6 +39,10 @@ GOOD GOOD GOOD next - build signal_output and make a working chain with dummy data + + +main definitions of libavcodec.h are in utils.c + */ #include <unordered_map> @@ -112,6 +116,7 @@ namespace Rotor { explicit Packet(AVFormatContext* ctxt = nullptr) { av_init_packet(&packet); packet.data = nullptr; + packet.size=0; if (ctxt) reset(ctxt); } |
