From 311ab0560b4a7052f60ed7db632a6bc226f10c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Thu, 29 Mar 2007 16:46:23 +0000 Subject: Reorder demux_tta_t structure so that all the important pointers and variables fall into the same cacheline, while the header can simply remain on a different one, as it's needed only at the begin of the encoding. CVS patchset: 8758 CVS date: 2007/03/29 16:46:23 --- src/demuxers/demux_tta.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_tta.c b/src/demuxers/demux_tta.c index aec6becae..2e4808b9c 100644 --- a/src/demuxers/demux_tta.c +++ b/src/demuxers/demux_tta.c @@ -20,7 +20,7 @@ * True Audio demuxer by Diego Pettenò * Inspired by tta libavformat demuxer by Alex Beregszaszi * - * $Id: demux_tta.c,v 1.3 2007/02/25 18:04:57 dgp85 Exp $ + * $Id: demux_tta.c,v 1.4 2007/03/29 16:46:23 dgp85 Exp $ */ #define LOG_MODULE "demux_tta" @@ -40,6 +40,11 @@ typedef struct { fifo_buffer_t *video_fifo; fifo_buffer_t *audio_fifo; input_plugin_t *input; + + uint32_t *seektable; + uint32_t totalframes; + uint32_t currentframe; + int status; union { @@ -54,10 +59,6 @@ typedef struct { } __attribute__((__packed__)) tta; uint8_t buffer[22]; /* This is the size of the header */ } header; - - uint32_t totalframes; - uint32_t currentframe; - uint32_t *seektable; } demux_tta_t; typedef struct { -- cgit v1.2.3