From b1489d803be933eff43981f23b3540e9a0fb719f Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 22 Mar 2013 17:56:41 +0000 Subject: still fighting with libavcodec --- rotord/rotor.cpp | 1 + rotord/rotor.h | 5 +++++ 2 files changed, 6 insertions(+) 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,vectorsample_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 @@ -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); } -- cgit v1.2.3