]> git.sesse.net Git - ffmpeg/commit
avcodec/mpeg12enc: Perform size/level/profile checks earlier
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Tue, 6 Apr 2021 19:33:53 +0000 (21:33 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sat, 10 Apr 2021 01:54:45 +0000 (03:54 +0200)
commitbf61cbb7fcd73001dde6e73ad636442fd18688fb
tree230cae4b620b7e1a21ecd765acc88b1e72261e57
parentd5c7e5cb65ee29a8e66e704ac5b7953657a6ff9c
avcodec/mpeg12enc: Perform size/level/profile checks earlier

This has the advantage that one does not waste some allocations
if one errors out because of these checks.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavcodec/mpeg12enc.c