diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-02-09 10:52:33 -0500 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-11 02:54:08 +0100 |
commit | 7ade06cc2eeb1f9521fd70098b2ae03064a91120 (patch) | |
tree | 2da8ac774a0b732da200419122338aaea5271dd0 /libavcodec/vp3dsp.c | |
parent | 6ff532b95d57444270696112f85b468f7fe5d422 (diff) | |
download | ffmpeg-7ade06cc2eeb1f9521fd70098b2ae03064a91120.tar.gz |
check sample_fmt in avcodec_open
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.
(cherry picked from commit 2cfa2d925808e6cc6fb7a7c133b7cb7622afd37e)
Diffstat (limited to 'libavcodec/vp3dsp.c')
0 files changed, 0 insertions, 0 deletions