Revision 89bedc4d libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
1761 1761
    s->mdct.avctx = avctx;
1762 1762
    ret = mdct_init(&s->mdct, 9);
1763 1763
    if (ret) {
1764
        ac3_encode_close(avctx);
1765
        return ret;
1764
        goto init_fail;
1766 1765
    }
1767 1766

  
1768 1767
    ret = allocate_buffers(avctx);
1769 1768
    if (ret) {
1770
        ac3_encode_close(avctx);
1771
        return ret;
1769
        goto init_fail;
1772 1770
    }
1773 1771

  
1774 1772
    avctx->coded_frame= avcodec_alloc_frame();
1775 1773

  
1776 1774
    return 0;
1775
init_fail:
1776
    ac3_encode_close(avctx);
1777
    return ret;
1777 1778
}
1778 1779

  
1779 1780

  

Also available in: Unified diff