Revision e35c984a libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
1277 1277
    s->sample_rate        = avctx->sample_rate;
1278 1278
    s->bit_alloc.sr_shift = i % 3;
1279 1279
    s->bit_alloc.sr_code  = i / 3;
1280
    s->bitstream_id       = 8 + s->bit_alloc.sr_shift;
1281
    s->bitstream_mode     = 0; /* complete main audio service */
1282 1280

  
1283 1281
    /* bitrate & frame size */
1284 1282
    for (i = 0; i < 19; i++) {
......
1312 1310
    if (ret)
1313 1311
        return ret;
1314 1312

  
1313
    s->bitstream_id   = 8 + s->bit_alloc.sr_shift;
1314
    s->bitstream_mode = 0; /* complete main audio service */
1315

  
1315 1316
    s->frame_size_min  = 2 * ff_ac3_frame_size_tab[s->frame_size_code][s->bit_alloc.sr_code];
1316 1317
    s->bits_written    = 0;
1317 1318
    s->samples_written = 0;

Also available in: Unified diff