audiohooks: Clean references to formats
[asterisk/asterisk.git] / codecs / ex_adpcm.h
index 8a1a5ee..3602397 100644 (file)
@@ -19,7 +19,6 @@ static struct ast_frame *adpcm_sample(void)
 {
        static struct ast_frame f = {
                .frametype = AST_FRAME_VOICE,
 {
        static struct ast_frame f = {
                .frametype = AST_FRAME_VOICE,
-               .subclass.codec = AST_FORMAT_ADPCM,
                .datalen = sizeof(ex_adpcm),
                .samples = ARRAY_LEN(ex_adpcm) * 2,
                .mallocd = 0,
                .datalen = sizeof(ex_adpcm),
                .samples = ARRAY_LEN(ex_adpcm) * 2,
                .mallocd = 0,
@@ -28,5 +27,7 @@ static struct ast_frame *adpcm_sample(void)
                .data.ptr = ex_adpcm,
        };
 
                .data.ptr = ex_adpcm,
        };
 
+       f.subclass.format = ast_format_adpcm;
+
        return &f;
 }
        return &f;
 }