23 #define BITSTREAM_READER_LE 
   39     if (src_size < avctx->
width * avctx->
height * 3 / 2) {
 
   52     for (h = 0; h < avctx->
height; h += 2) {
 
   53         for (w = 0; w < avctx->
width; w += 2) {
 
   56             U[w >> 1] = src[4] + 0x80;
 
   57             V[w >> 1] = src[5] + 0x80;
 
   69 static const uint8_t def_lru[8] = { 0x00, 0x20, 0x40, 0x60, 0x80, 0xA0, 0xC0, 0xFF };
 
   78         memmove(lru + 1, lru, 
sizeof(*lru) * (8 - 1));
 
   81         memmove(lru + 1, lru, 
sizeof(*lru) * (c - 1));
 
   90                             int ystride, 
int ustride, 
int vstride)
 
   95     for (i = 0; i < 3; i++)
 
   98     for (y = 0; y < 
height; y+=2) {
 
   99         for (x = 0; x < 
width; x += 2) {
 
  100             Y[x + 0 + 0 * ystride] = 
decode_sym(gb, lru[0]);
 
  101             Y[x + 1 + 0 * ystride] = 
decode_sym(gb, lru[0]);
 
  102             Y[x + 0 + 1 * ystride] = 
decode_sym(gb, lru[0]);
 
  103             Y[x + 1 + 1 * ystride] = 
decode_sym(gb, lru[0]);
 
  121     int nslices, slice, slice_height;
 
  122     uint32_t 
off, slice_size;
 
  127     nslices = bytestream2_get_le16(&gb);
 
  128     off = 
FFALIGN(nslices * 4 + 2, 16);
 
  129     if (src_size < off) {
 
  134     if (!nslices || avctx->
height % nslices) {
 
  140     slice_height = avctx->
height / nslices;
 
  141     if ((avctx->
width & 1) || (slice_height & 1)) {
 
  143                               avctx->
width, slice_height);
 
  154     for (slice = 0; slice < nslices; slice++) {
 
  155         slice_size = bytestream2_get_le32(&gb);
 
  156         if (slice_size > src_size - off) {
 
  158                    "invalid slice size %d (only %d bytes left)\n",
 
  159                    slice_size, src_size - off);
 
  162         if (slice_size <= 16) {
 
  167         if (
AV_RL32(src + off) != slice_size - 16) {
 
  169                    "Slice sizes mismatch: got %d instead of %d\n",
 
  170                    AV_RL32(src + off), slice_size - 16);
 
  176         Y += pic->
linesize[0] *  slice_height;
 
  177         U += pic->
linesize[1] * (slice_height >> 1);
 
  178         V += pic->
linesize[2] * (slice_height >> 1);
 
  192     if (avpkt->
size < 16) {