Browse code

Add forgotten const to enum AVSampleFormat Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/04/12 21:25:37
Showing 3 changed files
... ...
@@ -1044,5 +1044,5 @@ AVCodec ff_amrnb_decoder = {
1044 1044
     .init           = amrnb_decode_init,
1045 1045
     .decode         = amrnb_decode_frame,
1046 1046
     .long_name      = NULL_IF_CONFIG_SMALL("Adaptive Multi-Rate NarrowBand"),
1047
-    .sample_fmts    = (enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE},
1047
+    .sample_fmts    = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE},
1048 1048
 };
... ...
@@ -1233,5 +1233,5 @@ AVCodec ff_amrwb_decoder = {
1233 1233
     .init           = amrwb_decode_init,
1234 1234
     .decode         = amrwb_decode_frame,
1235 1235
     .long_name      = NULL_IF_CONFIG_SMALL("Adaptive Multi-Rate WideBand"),
1236
-    .sample_fmts    = (enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE},
1236
+    .sample_fmts    = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE},
1237 1237
 };
... ...
@@ -577,7 +577,7 @@ AVCodec ff_adpcm_g722_encoder = {
577 577
     .close          = g722_close,
578 578
     .encode         = g722_encode_frame,
579 579
     .long_name      = NULL_IF_CONFIG_SMALL("G.722 ADPCM"),
580
-    .sample_fmts    = (enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
580
+    .sample_fmts    = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
581 581
 };
582 582
 #endif
583 583