aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/g722.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-12-03 19:54:20 +0200
committerMartin Storsjö <martin@martin.st>2011-12-05 12:41:23 +0200
commit6fcbb0f553b8e45993e2746d3763adc2faec0781 (patch)
treec73b056b26e471b6e5bc2d374a3a260ac532e72d /libavcodec/g722.h
parent0bafe04917e0629335eac559ded9f27db096d833 (diff)
downloadffmpeg-6fcbb0f553b8e45993e2746d3763adc2faec0781.tar.gz
g722dec: Signal skipping the lower bits via AVOptions instead of bits_per_coded_sample
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ö <martin@martin.st>
Diffstat (limited to 'libavcodec/g722.h')
-rw-r--r--libavcodec/g722.h2
1 files changed, 2 insertions, 0 deletions
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