diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-03-02 17:21:55 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-03-02 17:21:55 +0000 |
commit | 50c93f74a6dd4f0dcca206ca783471bbca8850e2 (patch) | |
tree | f216ee9f2342c923c27806e0b63aa6af890680c5 /libavcodec/mpeg12.c | |
parent | ed263031f61465a29196c577c4493b72376b3b13 (diff) | |
download | ffmpeg-50c93f74a6dd4f0dcca206ca783471bbca8850e2.tar.gz |
10l (segfault fix)
Originally committed as revision 2837 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index d3009abaae..7af3c6f424 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2205,8 +2205,8 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y, if(field_pic && !s->first_field) xy += wrap/2; - for(dir=0; dir<2; dir++){ - for(i=0; i<2; i++){ + for(i=0; i<2; i++){ + for(dir=0; dir<2; dir++){ if (s->mb_intra || (dir==1 && s->pict_type != B_TYPE)) { motion_x = motion_y = 0; }else if (s->mv_type == MV_TYPE_16X16){ @@ -2221,8 +2221,8 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y, s->current_picture.motion_val[dir][xy ][1] = motion_y; s->current_picture.motion_val[dir][xy + 1][0] = motion_x; s->current_picture.motion_val[dir][xy + 1][1] = motion_y; - xy += wrap; } + xy += wrap; } } |