[FFmpeg-cvslog] g722dec: Change bits_per_codeword to the right option type

Martin Storsjö git at videolan.org
Mon Oct 28 13:26:51 CET 2013


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sun Oct 27 21:57:06 2013 +0200| [f2521563d1a0c3e2a21892f59f3327b82b3db7fc] | committer: Martin Storsjö

g722dec: Change bits_per_codeword to the right option type

This isn't a set of flags but just a plain integer in the range
6-8.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f2521563d1a0c3e2a21892f59f3327b82b3db7fc
---

 libavcodec/g722dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/g722dec.c b/libavcodec/g722dec.c
index 26aa6cf..26f288b 100644
--- a/libavcodec/g722dec.c
+++ b/libavcodec/g722dec.c
@@ -44,7 +44,7 @@
 #define OFFSET(x) offsetof(G722Context, x)
 #define AD AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_DECODING_PARAM
 static const AVOption options[] = {
-    { "bits_per_codeword", "Bits per G722 codeword", OFFSET(bits_per_codeword), AV_OPT_TYPE_FLAGS, { .i64 = 8 }, 6, 8, AD },
+    { "bits_per_codeword", "Bits per G722 codeword", OFFSET(bits_per_codeword), AV_OPT_TYPE_INT, { .i64 = 8 }, 6, 8, AD },
     { NULL }
 };
 



More information about the ffmpeg-cvslog mailing list