Mercurial > libavcodec.hg
comparison pcm.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 | 266bf83f634d |
children | bdf4a9ca162a |
comparison
equal
deleted
inserted
replaced
10144:50ec8930f99e | 10145:7955db355703 |
---|---|
521 0, \ | 521 0, \ |
522 pcm_encode_init, \ | 522 pcm_encode_init, \ |
523 pcm_encode_frame, \ | 523 pcm_encode_frame, \ |
524 pcm_encode_close, \ | 524 pcm_encode_close, \ |
525 NULL, \ | 525 NULL, \ |
526 .sample_fmts = (enum SampleFormat[]){sample_fmt_,SAMPLE_FMT_NONE}, \ | 526 .sample_fmts = (const enum SampleFormat[]){sample_fmt_,SAMPLE_FMT_NONE}, \ |
527 .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ | 527 .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ |
528 }; | 528 }; |
529 #else | 529 #else |
530 #define PCM_ENCODER(id,sample_fmt_,name,long_name_) | 530 #define PCM_ENCODER(id,sample_fmt_,name,long_name_) |
531 #endif | 531 #endif |
539 sizeof(PCMDecode), \ | 539 sizeof(PCMDecode), \ |
540 pcm_decode_init, \ | 540 pcm_decode_init, \ |
541 NULL, \ | 541 NULL, \ |
542 NULL, \ | 542 NULL, \ |
543 pcm_decode_frame, \ | 543 pcm_decode_frame, \ |
544 .sample_fmts = (enum SampleFormat[]){sample_fmt_,SAMPLE_FMT_NONE}, \ | 544 .sample_fmts = (const enum SampleFormat[]){sample_fmt_,SAMPLE_FMT_NONE}, \ |
545 .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ | 545 .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ |
546 }; | 546 }; |
547 #else | 547 #else |
548 #define PCM_DECODER(id,sample_fmt_,name,long_name_) | 548 #define PCM_DECODER(id,sample_fmt_,name,long_name_) |
549 #endif | 549 #endif |