Ticket #4540: patchadx.diff

File patchadx.diff, 810 bytes (added by Carl Eugen Hoyos, 11 years ago)
  • libavcodec/adxenc.c

    diff --git a/libavcodec/adxenc.c b/libavcodec/adxenc.c
    index 7736d09..39d4023 100644
    a b static int adx_encode_header(AVCodecContext *avctx, uint8_t *buf, int bufsize)  
    108108    bytestream_put_byte(&buf, 4);                   /* sample size */
    109109    bytestream_put_byte(&buf, avctx->channels);     /* channels */
    110110    bytestream_put_be32(&buf, avctx->sample_rate);  /* sample rate */
    111     bytestream_put_be32(&buf, 0);                   /* total sample count */
     111    bytestream_put_be32(&buf, -1);                  /* total sample count */
    112112    bytestream_put_be16(&buf, c->cutoff);           /* cutoff frequency */
    113113    bytestream_put_byte(&buf, 3);                   /* version */
    114114    bytestream_put_byte(&buf, 0);                   /* flags */