]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/adpcmenc: remove BLKSIZE #define
authorZane van Iperen <zane@zanevaniperen.com>
Wed, 14 Oct 2020 12:56:49 +0000 (22:56 +1000)
committerZane van Iperen <zane@zanevaniperen.com>
Fri, 16 Oct 2020 23:36:07 +0000 (09:36 +1000)
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
libavcodec/adpcm.h
libavcodec/adpcmenc.c

index dc0d49ac616fb0e8bcf753696a5fd0d3f45e2a08..0ffc3da1d083b28297c8e4de198eb7c49cb5ed83 100644 (file)
@@ -28,8 +28,6 @@
 
 #include <stdint.h>
 
-#define BLKSIZE 1024
-
 typedef struct ADPCMChannelStatus {
     int predictor;
     int16_t step_index;
index 725d418edc49edd4c44dc03e764f4aa0d06d957a..b2be83b84e34a4402c699d175f11f1d0a3ccc42a 100644 (file)
@@ -857,7 +857,7 @@ static const AVOption options[] = {
         .help        = "set the block size",
         .offset      = offsetof(ADPCMEncodeContext, block_size),
         .type        = AV_OPT_TYPE_INT,
-        .default_val = {.i64 = BLKSIZE},
+        .default_val = {.i64 = 1024},
         .min         = 32,
         .max         = 8192, /* Is this a reasonable upper limit? */
         .flags       = AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM