From 6fcbb0f553b8e45993e2746d3763adc2faec0781 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sat, 3 Dec 2011 19:54:20 +0200 Subject: g722dec: Signal skipping the lower bits via AVOptions instead of bits_per_coded_sample MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids using bits_per_coded_sample for this information. bits_per_coded_sample should be 4 for this codec normally, since two samples are encoded into one 8 bit codeword. In principle, this might be info that needs to be passed from a demuxer, and in that case, a private AVOption isn't the best choice, but no such samples are available at the moment, so that use case is purely theoretical at the moment. Signed-off-by: Martin Storsjö --- libavcodec/g722.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/g722.h') diff --git a/libavcodec/g722.h b/libavcodec/g722.h index 69e7a86e25..eb3b9b872e 100644 --- a/libavcodec/g722.h +++ b/libavcodec/g722.h @@ -31,7 +31,9 @@ #define PREV_SAMPLES_BUF_SIZE 1024 typedef struct { + const AVClass *class; AVFrame frame; + int bits_per_codeword; int16_t prev_samples[PREV_SAMPLES_BUF_SIZE]; ///< memory of past decoded samples int prev_samples_pos; ///< the number of values in prev_samples -- cgit v1.2.3