]> git.videolan.org Git - x264.git/commit
Improve flash detection's behavior near the end of the video
authorJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 7 Nov 2010 00:47:27 +0000 (17:47 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Wed, 10 Nov 2010 08:16:25 +0000 (00:16 -0800)
commit601c0e38ef957ecca3792521beb335113ba49e3b
tree20ef9e1e9c6e838324c19fb1ec6892dd90d8b5da
parentd0406d4e3dc2b0953390857ac6efa0b5a9d5ba8f
Improve flash detection's behavior near the end of the video
Flash detection catches situations like AAAABBCCDDDD, where A,B,C,D are frames in different scenes.
x264 would place a keyframe on the first "D".
However, if the video ended on the last "C", x264 would place a keyframe on the first "C", even though C classifies as a flash.
This change fixes this issue.
encoder/slicetype.c