Browse Source

avcodec/adpcmenc: remove BLKSIZE #define

Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
tags/n4.4
Zane van Iperen 5 years ago
parent
commit
bf4a253f38
No known key found for this signature in database GPG Key ID: 68616B2D8AC4DCC5
2 changed files with 1 additions and 3 deletions
  1. +0
    -2
      libavcodec/adpcm.h
  2. +1
    -1
      libavcodec/adpcmenc.c

+ 0
- 2
libavcodec/adpcm.h View File

@@ -28,8 +28,6 @@

#include <stdint.h>

#define BLKSIZE 1024

typedef struct ADPCMChannelStatus {
int predictor;
int16_t step_index;


+ 1
- 1
libavcodec/adpcmenc.c View 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


Loading…
Cancel
Save