28 #define UNCHECKED_BITSTREAM_READER 1
165 if (pos + 10 > buf_size)
195 const int qscale = s->
qscale;
268 "Slice mismatch at MB: %d\n", xy);
312 if (bits_left == 0) {
314 }
else if (bits_left != 1) {
316 v |= 0x7F >> (7 - (bits_count & 7));
318 if (v == 0x7F && bits_left <= 8)
361 max_extra += 256 * 256 * 256 * 64;
363 if (left > max_extra)
365 "discarding %d junk bits at end, next would be %X\n",
377 "slice end not reached but screenspace end (%d left %06X, score= %d)\n",
390 int buf_size = avpkt->
size;
424 "this codec does not support truncated bitstreams\n");
436 for(i=0; i < buf_size-3; i++) {
437 if (buf[i]==0 && buf[i+1]==0 && buf[i+2]==1) {
438 if (buf[i+3]==0xB0) {
486 }
else if (CONFIG_FLV_DECODER && s->
h263_flv) {
613 int prev_x = s->
mb_x, prev_y = s->
mb_y;
670 for (p=0; p<3; p++) {
674 for (y=0; y<(h>>1); y++)
677 pict->
data[p][x + y*linesize],
678 pict->
data[p][x + (h-1-y)*linesize]);
691 #if CONFIG_H263_VAAPI_HWACCEL || CONFIG_MPEG4_VAAPI_HWACCEL
694 #if CONFIG_H263_VDPAU_HWACCEL || CONFIG_MPEG4_VDPAU_HWACCEL