• Reimar Döffinger's avatar
    check sample_fmt in avcodec_open · 2cfa2d92
    Reimar Döffinger authored
    check AVCodecContext->sample_fmt against AVCodec->sample_fmts[] to ensure
    that the encoder supports the specified sample format. Error out if it doesn't.
    Previously, it would continue and output garbage. Fixes issue 2587.
    2cfa2d92
utils.c 37.3 KB