]> git.sesse.net Git - ffmpeg/commit
h264: fix AVDISCARD_NONKEY for some interlaced content
authorJohn Högberg <john.hogberg@ericsson.com>
Fri, 24 Jul 2015 13:30:38 +0000 (15:30 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 27 Jul 2015 16:11:00 +0000 (18:11 +0200)
commitb7040e67ec18259ca634a0e29d98469b3484a87c
treec0cb26e21c6fb98af4e18ec5b51cb60f73d22035
parentb5c1c16247ab7d166c84eaf4564e49a1535fdaaf
h264: fix AVDISCARD_NONKEY for some interlaced content

When skip_frame is set to _NONKEY the decoder skips everything except intra
slices, which breaks frames that consist of an intra field together with any
other field type; half the frame becomes garbage. This patch fixes the issue by
letting non-intra slices through if they're part of a keyframe.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/h264.c