28 #define UNCHECKED_BITSTREAM_READER 1
171 if (pos + 10 > buf_size)
201 const int qscale = s->
qscale;
274 "Slice mismatch at MB: %d\n", xy);
318 if (bits_left == 0) {
320 }
else if (bits_left != 1) {
322 v |= 0x7F >> (7 - (bits_count & 7));
324 if (v == 0x7F && bits_left <= 8)
376 max_extra += 256 * 256 * 256 * 64;
378 if (left > max_extra)
380 "discarding %d junk bits at end, next would be %X\n",
392 "slice end not reached but screenspace end (%d left %06X, score= %d)\n",
405 int buf_size = avpkt->
size;
439 "this codec does not support truncated bitstreams\n");
451 for(i=0; i < buf_size-3; i++) {
452 if (buf[i]==0 && buf[i+1]==0 && buf[i+2]==1) {
453 if (buf[i+3]==0xB0) {
491 }
else if (CONFIG_FLV_DECODER && s->
h263_flv) {
637 int prev_x = s->
mb_x, prev_y = s->
mb_y;
694 for (p=0; p<3; p++) {
698 for (y=0; y<(h>>1); y++)
701 pict->
data[p][x + y*linesize],
702 pict->
data[p][x + (h-1-y)*linesize]);
715 #if CONFIG_H263_VAAPI_HWACCEL || CONFIG_MPEG4_VAAPI_HWACCEL
718 #if CONFIG_H263_VDPAU_HWACCEL || CONFIG_MPEG4_VDPAU_HWACCEL