diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-19 09:50:01 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-19 09:50:01 +0200 |
commit | 6df61c3ae04ccdb4e85ba287770cd380b260b02f (patch) | |
tree | 79471bc913ed71faa940880f60e531308527bc5d /libavcodec | |
parent | 209cb8afe0092e66411d730b85139947cc706708 (diff) | |
download | ffmpeg-6df61c3ae04ccdb4e85ba287770cd380b260b02f.tar.gz |
sonicenc: set supported samples formats array
This ensures that only supported formats are input
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/sonic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c index a96e687748..a8cd93ad8b 100644 --- a/libavcodec/sonic.c +++ b/libavcodec/sonic.c @@ -974,6 +974,7 @@ AVCodec ff_sonic_encoder = { .priv_data_size = sizeof(SonicContext), .init = sonic_encode_init, .encode2 = sonic_encode_frame, + .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, .capabilities = CODEC_CAP_EXPERIMENTAL, .close = sonic_encode_close, .long_name = NULL_IF_CONFIG_SMALL("Sonic"), @@ -988,6 +989,7 @@ AVCodec ff_sonic_ls_encoder = { .priv_data_size = sizeof(SonicContext), .init = sonic_encode_init, .encode2 = sonic_encode_frame, + .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, .capabilities = CODEC_CAP_EXPERIMENTAL, .close = sonic_encode_close, .long_name = NULL_IF_CONFIG_SMALL("Sonic lossless"), |