Lines Matching refs:get_slice_offset
1582 static int get_slice_offset(AVCodecContext *avctx, const uint8_t *buf, int n)
1665 if(get_slice_offset(avctx, slices_hdr, 0) < 0 ||
1666 get_slice_offset(avctx, slices_hdr, 0) > buf_size){
1670 init_get_bits(&s->gb, buf+get_slice_offset(avctx, slices_hdr, 0), (buf_size-get_slice_offset(avctx, slices_hdr, 0))*8);
1771 int offset = get_slice_offset(avctx, slices_hdr, i);
1776 size = get_slice_offset(avctx, slices_hdr, i+1) - offset;
1787 if (get_slice_offset(avctx, slices_hdr, i+1) < 0 ||
1788 get_slice_offset(avctx, slices_hdr, i+1) > buf_size) {
1792 init_get_bits(&s->gb, buf+get_slice_offset(avctx, slices_hdr, i+1), (buf_size-get_slice_offset(avctx, slices_hdr, i+1))*8);
1795 size = get_slice_offset(avctx, slices_hdr, i+2) - offset;