avcodec, avutil: allow more control about how samples are skipped