28 #define UNCHECKED_BITSTREAM_READER 1
163 if (pos + 10 > buf_size)
193 const int qscale = s->
qscale;
264 "Slice mismatch at MB: %d\n", xy);
306 if (bits_left == 0) {
308 }
else if (bits_left != 1) {
310 v |= 0x7F >> (7 - (bits_count & 7));
312 if (v == 0x7F && bits_left <= 8)
344 max_extra += 256 * 256 * 256 * 64;
346 if (left > max_extra)
348 "discarding %d junk bits at end, next would be %X\n",
360 "slice end not reached but screenspace end (%d left %06X, score= %d)\n",
373 int buf_size = avpkt->
size;
407 "this codec does not support truncated bitstreams\n");
419 for(i=0; i < buf_size-3; i++) {
420 if (buf[i]==0 && buf[i+1]==0 && buf[i+2]==1) {
421 if (buf[i+3]==0xB0) {
469 }
else if (CONFIG_FLV_DECODER && s->
h263_flv) {
594 int prev_x = s->
mb_x, prev_y = s->
mb_y;
651 for (p=0; p<3; p++) {
655 for (y=0; y<(h>>1); y++)
658 pict->
data[p][x + y*linesize],
659 pict->
data[p][x + (h-1-y)*linesize]);