diff mbox

[FFmpeg-devel,1/3] avcodec/s302m: fix AVOption flags

Message ID 20170627095917.8825-1-foobaz86@gmail.com
State Accepted
Commit f8b1a70412b592dff774e306fd63963369ea6810
Headers show

Commit Message

foo86 June 27, 2017, 9:59 a.m. UTC
---
 libavcodec/s302m.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul B Mahol June 27, 2017, 10:10 a.m. UTC | #1
On 6/27/17, foo86 <foobaz86@gmail.com> wrote:
> ---
>  libavcodec/s302m.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

lgtm
James Almer July 1, 2017, 3:04 p.m. UTC | #2
On 6/27/2017 7:10 AM, Paul B Mahol wrote:
> On 6/27/17, foo86 <foobaz86@gmail.com> wrote:
>> ---
>>  libavcodec/s302m.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> lgtm

Pushed.
diff mbox

Patch

diff --git a/libavcodec/s302m.c b/libavcodec/s302m.c
index a68ac79f2c..4350d97f0a 100644
--- a/libavcodec/s302m.c
+++ b/libavcodec/s302m.c
@@ -201,7 +201,7 @@  static int s302m_decode_frame(AVCodecContext *avctx, void *data,
     return avpkt->size;
 }
 
-#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_DECODING_PARAM
+#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_DECODING_PARAM
 static const AVOption s302m_options[] = {
     {"non_pcm_mode", "Chooses what to do with NON-PCM", offsetof(S302Context, non_pcm_mode), AV_OPT_TYPE_INT, {.i64 = 3}, 0, 3, FLAGS, "non_pcm_mode"},
     {"copy"        , "Pass NON-PCM through unchanged"     , 0, AV_OPT_TYPE_CONST, {.i64 = 0}, 0, 3, FLAGS, "non_pcm_mode"},