Mercurial > libavcodec.hg
comparison utils.c @ 6464:0c3cc1d7a0b3 libavcodec
Make av_class a pointer to a const AVClass. Addresses one warning in
imgresample.c.
| author | takis |
|---|---|
| date | Thu, 06 Mar 2008 17:41:31 +0000 |
| parents | ff4fa36b555e |
| children | 3dae816c2485 |
comparison
equal
deleted
inserted
replaced
| 6463:9f397992ddff | 6464:0c3cc1d7a0b3 |
|---|---|
| 766 #undef S | 766 #undef S |
| 767 #undef E | 767 #undef E |
| 768 #undef D | 768 #undef D |
| 769 #undef DEFAULT | 769 #undef DEFAULT |
| 770 | 770 |
| 771 static AVClass av_codec_context_class = { "AVCodecContext", context_to_name, options }; | 771 static const AVClass av_codec_context_class = { "AVCodecContext", context_to_name, options }; |
| 772 | 772 |
| 773 void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType codec_type){ | 773 void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType codec_type){ |
| 774 int flags=0; | 774 int flags=0; |
| 775 memset(s, 0, sizeof(AVCodecContext)); | 775 memset(s, 0, sizeof(AVCodecContext)); |
| 776 | 776 |
