summaryrefslogtreecommitdiff
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-11-12 19:56:55 +0100
committerAnton Khirnov <anton@khirnov.net>2012-12-04 21:43:53 +0100
commite57c4706e969afa1f2384481b955ccd9494cddb5 (patch)
treed2d9c103ead191d9ae273572862b29d92f6fc3b6 /libavcodec/internal.h
parentff953fecffd3b9a616a046723fb9d4690be032a6 (diff)
lavc: don't reuse audio buffers
Any performance gain from this is negligible and not worth the extra code.
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 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 {