diff options
author | lummax <luogpg@googlemail.com> | 2015-08-27 12:40:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-27 17:26:24 +0200 |
commit | 0c800b27611cadd64f46fd1bbd9dc8bb87fe168b (patch) | |
tree | 7c72f5f8dafe7498e29ea2433db22c349c073bb6 /libavformat | |
parent | 1dd854e10fe19d3a9cee38f886f66707c082c132 (diff) | |
download | ffmpeg-0c800b27611cadd64f46fd1bbd9dc8bb87fe168b.tar.gz |
avcodec: Assert on codec->encode2 in encode_audio2
Assert on `avctx->codec->encode2` to avoid a SEGFAULT on the subsequent
function call.
avcodec_encode_video2() uses a similar assertion.
Calling the wrong function on a stream is a serious inconsistency
which could at other places be potentially dangerous and exploitable,
it is thus safer to stop execution and not continue with such
inconsistency after returning an error.
Commit-message-extended-by commiter
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
0 files changed, 0 insertions, 0 deletions