Commit 367b00e8 authored by michael's avatar michael

1000l to myself for FFMIN(...,0) instead of ...,6)

some more checks


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3238 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c60579b3
...@@ -453,9 +453,11 @@ static int svq3_decode_mb (H264Context *h, unsigned int mb_type) { ...@@ -453,9 +453,11 @@ static int svq3_decode_mb (H264Context *h, unsigned int mb_type) {
mb_type = MB_TYPE_SKIP; mb_type = MB_TYPE_SKIP;
} else { } else {
mb_type= FFMIN(s->next_picture.mb_type[mb_xy], 0); mb_type= FFMIN(s->next_picture.mb_type[mb_xy], 6);
svq3_mc_dir (h, mb_type, PREDICT_MODE, 0, 0); if(svq3_mc_dir (h, mb_type, PREDICT_MODE, 0, 0) < 0)
svq3_mc_dir (h, mb_type, PREDICT_MODE, 1, 1); return -1;
if(svq3_mc_dir (h, mb_type, PREDICT_MODE, 1, 1) < 0)
return -1;
mb_type = MB_TYPE_16x16; mb_type = MB_TYPE_16x16;
} }
...@@ -513,17 +515,20 @@ static int svq3_decode_mb (H264Context *h, unsigned int mb_type) { ...@@ -513,17 +515,20 @@ static int svq3_decode_mb (H264Context *h, unsigned int mb_type) {
/* decode motion vector(s) and form prediction(s) */ /* decode motion vector(s) and form prediction(s) */
if (s->pict_type == P_TYPE) { if (s->pict_type == P_TYPE) {
svq3_mc_dir (h, (mb_type - 1), mode, 0, 0); if(svq3_mc_dir (h, (mb_type - 1), mode, 0, 0) < 0)
return -1;
} else { /* B_TYPE */ } else { /* B_TYPE */
if (mb_type != 2) { if (mb_type != 2) {
svq3_mc_dir (h, 0, mode, 0, 0); if(svq3_mc_dir (h, 0, mode, 0, 0) < 0)
return -1;
} else { } else {
for (i=0; i < 4; i++) { for (i=0; i < 4; i++) {
memset (s->current_picture.motion_val[0][b_xy + i*h->b_stride], 0, 4*2*sizeof(int16_t)); memset (s->current_picture.motion_val[0][b_xy + i*h->b_stride], 0, 4*2*sizeof(int16_t));
} }
} }
if (mb_type != 1) { if (mb_type != 1) {
svq3_mc_dir (h, 0, mode, 1, (mb_type == 3)); if(svq3_mc_dir (h, 0, mode, 1, (mb_type == 3)) < 0)
return -1;
} else { } else {
for (i=0; i < 4; i++) { for (i=0; i < 4; i++) {
memset (s->current_picture.motion_val[1][b_xy + i*h->b_stride], 0, 4*2*sizeof(int16_t)); memset (s->current_picture.motion_val[1][b_xy + i*h->b_stride], 0, 4*2*sizeof(int16_t));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment