1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

sonicenc: set supported samples formats array

This ensures that only supported formats are input

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-06-19 09:50:01 +02:00
parent 209cb8afe0
commit 6df61c3ae0

View File

@ -974,6 +974,7 @@ AVCodec ff_sonic_encoder = {
.priv_data_size = sizeof(SonicContext), .priv_data_size = sizeof(SonicContext),
.init = sonic_encode_init, .init = sonic_encode_init,
.encode2 = sonic_encode_frame, .encode2 = sonic_encode_frame,
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE },
.capabilities = CODEC_CAP_EXPERIMENTAL, .capabilities = CODEC_CAP_EXPERIMENTAL,
.close = sonic_encode_close, .close = sonic_encode_close,
.long_name = NULL_IF_CONFIG_SMALL("Sonic"), .long_name = NULL_IF_CONFIG_SMALL("Sonic"),
@ -988,6 +989,7 @@ AVCodec ff_sonic_ls_encoder = {
.priv_data_size = sizeof(SonicContext), .priv_data_size = sizeof(SonicContext),
.init = sonic_encode_init, .init = sonic_encode_init,
.encode2 = sonic_encode_frame, .encode2 = sonic_encode_frame,
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE },
.capabilities = CODEC_CAP_EXPERIMENTAL, .capabilities = CODEC_CAP_EXPERIMENTAL,
.close = sonic_encode_close, .close = sonic_encode_close,
.long_name = NULL_IF_CONFIG_SMALL("Sonic lossless"), .long_name = NULL_IF_CONFIG_SMALL("Sonic lossless"),