From e57c4706e969afa1f2384481b955ccd9494cddb5 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 12 Nov 2012 19:56:55 +0100 Subject: lavc: don't reuse audio buffers Any performance gain from this is negligible and not worth the extra code. --- libavcodec/internal.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libavcodec/internal.h') diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 9dde654528..069a855a74 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 { @@ -78,6 +75,12 @@ typedef struct AVCodecInternal { * padded with silence. Reject all subsequent frames. */ int last_audio_frame; + + /** + * The data for the last allocated audio frame. + * Stored here so we can free it. + */ + uint8_t *audio_data; } AVCodecInternal; struct AVCodecDefault { -- cgit v1.2.3