Revision 3abe5fbd libavcodec/flacenc.c

View differences:

libavcodec/flacenc.c
1283 1283
        put_bits(&s->pb, 16, s->sr_code[1]);
1284 1284
    }
1285 1285
    flush_put_bits(&s->pb);
1286
    crc = av_crc(av_crc07, 0, s->pb.buf, put_bits_count(&s->pb)>>3);
1286
    crc = av_crc(av_crc_get_table(AV_CRC_8_ATM), 0,
1287
                 s->pb.buf, put_bits_count(&s->pb)>>3);
1287 1288
    put_bits(&s->pb, 8, crc);
1288 1289
}
1289 1290

  
......
1425 1426
{
1426 1427
    int crc;
1427 1428
    flush_put_bits(&s->pb);
1428
    crc = bswap_16(av_crc(av_crc8005, 0, s->pb.buf, put_bits_count(&s->pb)>>3));
1429
    crc = bswap_16(av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0,
1430
                          s->pb.buf, put_bits_count(&s->pb)>>3));
1429 1431
    put_bits(&s->pb, 16, crc);
1430 1432
    flush_put_bits(&s->pb);
1431 1433
}

Also available in: Unified diff