X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Faacenc.h;h=63e789366f46dee5bedbc723419d5c1a4f769d50;hb=b098e1a4697573d5c501aceb863d89ebf1fcd5fd;hp=2252e2989cd2c7fe92ce7035e22f48f9a869b399;hpb=fab8d9717c9c6fe5aa29e9ef1c43bb70f234b8ba;p=ffmpeg diff --git a/libavcodec/aacenc.h b/libavcodec/aacenc.h index 2252e2989cd..63e789366f4 100644 --- a/libavcodec/aacenc.h +++ b/libavcodec/aacenc.h @@ -84,10 +84,10 @@ extern AACCoefficientsEncoder ff_aac_coders[]; typedef struct AACQuantizeBandCostCacheEntry { float rd; float energy; - int bits; ///< -1 means uninitialized entry + int bits; char cb; char rtz; - char padding[2]; ///< Keeps the entry size a multiple of 32 bits + uint16_t generation; } AACQuantizeBandCostCacheEntry; /** @@ -126,6 +126,7 @@ typedef struct AACEncContext { DECLARE_ALIGNED(16, int, qcoefs)[96]; ///< quantized coefficients DECLARE_ALIGNED(32, float, scoefs)[1024]; ///< scaled coefficients + uint16_t quantize_band_cost_cache_generation; AACQuantizeBandCostCacheEntry quantize_band_cost_cache[256][128]; ///< memoization area for quantize_band_cost struct {