aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-05 16:25:03 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-05 16:53:12 +0100
commit83db6cb521c699bec23e542b8fd24a3afc0dfc60 (patch)
treeee5debeae5bf8924d30b52e24367a371d75993ce /libavcodec/internal.h
parentd2a3f08dafed1f1136e2a9b5ce001a637cafb865 (diff)
parente57c4706e969afa1f2384481b955ccd9494cddb5 (diff)
downloadffmpeg-83db6cb521c699bec23e542b8fd24a3afc0dfc60.tar.gz
Merge commit 'e57c4706e969afa1f2384481b955ccd9494cddb5'
* commit 'e57c4706e969afa1f2384481b955ccd9494cddb5': lavc: don't reuse audio buffers This commit causes a 0.5% speedloss for mp3 and 2% for raw pcm, that is "time ffmpeg" style tested thus includes disk IO, demux and parsing I would not have merged it if it wasnt required for the "new" buffer API but sadly it is. Once the new API is in ill reimplement proper buffer reuse, which will fix this speedloss. In case we choose not to merge the "new" buffer API then this commit here should be reverted. Conflicts: libavcodec/internal.h libavcodec/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 30a8e4c40d..01620fa125 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -39,9 +39,6 @@ typedef struct InternalBuffer {
int width;
int height;
enum AVPixelFormat pix_fmt;
- uint8_t **extended_data;
- int audio_data_size;
- int nb_channels;
} InternalBuffer;
typedef struct AVCodecInternal {
@@ -80,6 +77,12 @@ typedef struct AVCodecInternal {
int last_audio_frame;
/**
+ * The data for the last allocated audio frame.
+ * Stored here so we can free it.
+ */
+ uint8_t *audio_data;
+
+ /**
* temporary buffer used for encoders to store their bitstream
*/
uint8_t *byte_buffer;