28 #define UNCHECKED_BITSTREAM_READER 1
160 if (pos + 10 > buf_size)
189 const int qscale = s->
qscale;
261 "Slice mismatch at MB: %d\n", xy);
304 if (bits_left == 0) {
306 }
else if (bits_left != 1) {
308 v |= 0x7F >> (7 - (bits_count & 7));
310 if (v == 0x7F && bits_left <= 8)
343 max_extra += 256 * 256 * 256 * 64;
345 if (left > max_extra)
347 "discarding %d junk bits at end, next would be %X\n",
359 "slice end not reached but screenspace end (%d left %06X, score= %d)\n",
372 int buf_size = avpkt->
size;
405 "this codec does not support truncated bitstreams\n");
417 for(i=0; i < buf_size-3; i++) {
418 if (buf[i]==0 && buf[i+1]==0 && buf[i+2]==1) {
419 if (buf[i+3]==0xB0) {
455 }
else if (CONFIG_MPEG4_DECODER && s->
h263_pred) {
465 }
else if (CONFIG_FLV_DECODER && s->
h263_flv) {
541 #define SET_QPEL_FUNC(postfix1, postfix2) \
542 s->dsp.put_ ## postfix1 = ff_put_ ## postfix2; \
543 s->dsp.put_no_rnd_ ## postfix1 = ff_put_no_rnd_ ## postfix2; \
544 s->dsp.avg_ ## postfix1 = ff_avg_ ## postfix2;
603 "bugs: %X lavc_build:%d xvid_build:%d divx_version:%d divx_build:%d %s\n",
708 int prev_x = s->
mb_x, prev_y = s->
mb_y;
743 int startcode_found = 0;
745 if (buf_size - current_pos > 7) {
747 for (i = current_pos; i < buf_size - 4; i++)
751 buf[i + 3] == 0xB6) {
752 startcode_found = !(buf[i + 4] & 0x40);
757 if (startcode_found) {
760 buf_size - current_pos +
765 buf_size - current_pos);
792 for (p=0; p<3; p++) {
796 for (y=0; y<(h>>1); y++)
799 pict->
data[p][x + y*linesize],
800 pict->
data[p][x + (h-1-y)*linesize]);