• attila's avatar
    Fix an issue uncovered by commit 20623: · 236bb275
    attila authored
    The init functions of mpc7 and mpc8 check whether the vlc has been
    initialized already and return early if this is the case (eg by calling
    init a second time).
    But avctx->sample_fmt and channel_layout is set after the vlc initialization,
    causing it not to be set on the second call of init.
    
    Move all manipulations of avctx before the initialization of the vlc,
    so that it is always set.
    
    
    git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20668 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
    236bb275
mpc7.c 10.2 KB