]> granicus.if.org Git - handbrake/commit
libhb: pass AV_PKT_FLAG_DISCARD through to decoder
authorJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 2 May 2019 18:56:02 +0000 (12:56 -0600)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 2 May 2019 18:58:39 +0000 (12:58 -0600)
commit9be711f822e4458d4d4edda1d00a6b752fc4e7b8
treefe708e0b8ec432d9c2aa81e80893c7ecf2beebd2
parent63f8bd872eda9457c0fe63af98cfd6ba334c6658
libhb: pass AV_PKT_FLAG_DISCARD through to decoder

Edit list cuts are not always on keyframe boundaries and therefore
sometimes require dropping frames after decoding them.
AV_PKT_FLAG_DISCARD tells us when to do this.

Fixes https://github.com/HandBrake/HandBrake/issues/1900
libhb/decavcodec.c
libhb/internal.h
libhb/stream.c