avformat/hevc: Check num_negative_pics and num_positive_pics