mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/146/head
parent
1dd854e10f
commit
0c800b2761
1 changed files with 2 additions and 0 deletions
Loading…
Reference in new issue