Changeset 0c800b27 in ffmpeg

Timestamp:
Aug 27, 2015, 3:26:24 PM (9 years ago)
Author:
Michael Niedermayer <michael@niedermayer.cc>
Branches:
master
Children:
57cd2f77
Parents:
1dd854e1
git-author:
lummax <luogpg@googlemail.com> (08/27/15 10:40:30)
git-committer:
Michael Niedermayer <michael@niedermayer.cc> (08/27/15 15:26:24)
Message:

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>

(No files)

Note: See TracChangeset for help on using the changeset viewer.