]> git.sesse.net Git - ffmpeg/commit
lavc: factor out encoder init/validation from avcodec_open2()
authorAnton Khirnov <anton@khirnov.net>
Tue, 9 Mar 2021 10:35:47 +0000 (11:35 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 16 Mar 2021 09:52:27 +0000 (10:52 +0100)
commit3f53c848470cb8173699e0bd64e804a19af963f7
tree54dd6e4d22d36c555e7fd525c593b5dd85a877d2
parentb334fd39c9c00c739faeece87fa81c980c148a16
lavc: factor out encoder init/validation from avcodec_open2()

avcodec_open2() is massive, splitting it makes it more readable.

Also, add a missing error code to ticks_per_frame sanity check.
libavcodec/encode.c
libavcodec/encode.h
libavcodec/utils.c