libmix: override AVC's DPB size from VUI data
For some incorrectly coded clips, the reference frame count within SPS is smaller than the DPB length described in VUI data,
which is in fact not permitted by H.264 spec. Establishing DPB by SPS's reference frame count will cause the DPB length not
large enough, thus handling reference frames incorrectly and causing correction and mosaics in decoded pictures.
Enlarge DPB length when VUI's DPB length exceed SPS's reference frame count.
Signed-off-by: Shuo Liu <firstname.lastname@example.org>
1 file changed