Lines Matching refs:get_slice_offset
1580 static int get_slice_offset(AVCodecContext *avctx, const uint8_t *buf, int n)
1647 if(get_slice_offset(avctx, slices_hdr, 0) < 0 ||
1648 get_slice_offset(avctx, slices_hdr, 0) > buf_size){
1652 init_get_bits(&s->gb, buf+get_slice_offset(avctx, slices_hdr, 0), (buf_size-get_slice_offset(avctx, slices_hdr, 0))*8);
1740 int offset = get_slice_offset(avctx, slices_hdr, i);
1745 size = get_slice_offset(avctx, slices_hdr, i+1) - offset;
1756 if (get_slice_offset(avctx, slices_hdr, i+1) < 0 ||
1757 get_slice_offset(avctx, slices_hdr, i+1) > buf_size) {
1761 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);
1764 size = get_slice_offset(avctx, slices_hdr, i+2) - offset;