Mercurial > libavcodec.hg
comparison asv1.c @ 10146:38cfe222e1a4 libavcodec
Mark all pix_fmts and supported_framerates compound literals as const.
Makes no difference for gcc but at least icc can put them in .rodata then.
author | reimar |
---|---|
date | Sun, 06 Sep 2009 16:09:21 +0000 |
parents | beb616cf1885 |
children | c687042d9bde |
comparison
equal
deleted
inserted
replaced
10145:7955db355703 | 10146:38cfe222e1a4 |
---|---|
643 CODEC_ID_ASV1, | 643 CODEC_ID_ASV1, |
644 sizeof(ASV1Context), | 644 sizeof(ASV1Context), |
645 encode_init, | 645 encode_init, |
646 encode_frame, | 646 encode_frame, |
647 //encode_end, | 647 //encode_end, |
648 .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, | 648 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
649 .long_name= NULL_IF_CONFIG_SMALL("ASUS V1"), | 649 .long_name= NULL_IF_CONFIG_SMALL("ASUS V1"), |
650 }; | 650 }; |
651 #endif | 651 #endif |
652 | 652 |
653 #if CONFIG_ASV2_ENCODER | 653 #if CONFIG_ASV2_ENCODER |
657 CODEC_ID_ASV2, | 657 CODEC_ID_ASV2, |
658 sizeof(ASV1Context), | 658 sizeof(ASV1Context), |
659 encode_init, | 659 encode_init, |
660 encode_frame, | 660 encode_frame, |
661 //encode_end, | 661 //encode_end, |
662 .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, | 662 .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
663 .long_name= NULL_IF_CONFIG_SMALL("ASUS V2"), | 663 .long_name= NULL_IF_CONFIG_SMALL("ASUS V2"), |
664 }; | 664 }; |
665 #endif | 665 #endif |