Mercurial > libavcodec.hg
comparison wmaenc.c @ 10145:7955db355703 libavcodec
Make sample_fmts and channel_layouts compound literals const to reduce size of
.data section.
author | reimar |
---|---|
date | Sun, 06 Sep 2009 09:15:07 +0000 |
parents | 5cc32c474caf |
children | 964d01b50f17 |
comparison
equal
deleted
inserted
replaced
10144:50ec8930f99e | 10145:7955db355703 |
---|---|
390 CODEC_ID_WMAV1, | 390 CODEC_ID_WMAV1, |
391 sizeof(WMACodecContext), | 391 sizeof(WMACodecContext), |
392 encode_init, | 392 encode_init, |
393 encode_superframe, | 393 encode_superframe, |
394 ff_wma_end, | 394 ff_wma_end, |
395 .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, | 395 .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, |
396 .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"), | 396 .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"), |
397 }; | 397 }; |
398 | 398 |
399 AVCodec wmav2_encoder = | 399 AVCodec wmav2_encoder = |
400 { | 400 { |
403 CODEC_ID_WMAV2, | 403 CODEC_ID_WMAV2, |
404 sizeof(WMACodecContext), | 404 sizeof(WMACodecContext), |
405 encode_init, | 405 encode_init, |
406 encode_superframe, | 406 encode_superframe, |
407 ff_wma_end, | 407 ff_wma_end, |
408 .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, | 408 .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE}, |
409 .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"), | 409 .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"), |
410 }; | 410 }; |