Mercurial > libavcodec.hg
comparison h264.c @ 3178:bd995b8c64fd libavcodec
Alignment fixes, caused problems on SPARC.
patch by "David S. Miller" davem <<at>> davemloft <<dot>> net
author | diego |
---|---|
date | Thu, 09 Mar 2006 08:05:45 +0000 |
parents | 8d1b2cc2a75b |
children | 15157293beea |
comparison
equal
deleted
inserted
replaced
3177:8d1b2cc2a75b | 3178:bd995b8c64fd |
---|---|
4294 } | 4294 } |
4295 | 4295 |
4296 s->mb_width= h->sps.mb_width; | 4296 s->mb_width= h->sps.mb_width; |
4297 s->mb_height= h->sps.mb_height * (2 - h->sps.frame_mbs_only_flag); | 4297 s->mb_height= h->sps.mb_height * (2 - h->sps.frame_mbs_only_flag); |
4298 | 4298 |
4299 h->b_stride= s->mb_width*4 + 1; | 4299 h->b_stride= s->mb_width*4; |
4300 h->b8_stride= s->mb_width*2 + 1; | 4300 h->b8_stride= s->mb_width*2; |
4301 | 4301 |
4302 s->width = 16*s->mb_width - 2*(h->sps.crop_left + h->sps.crop_right ); | 4302 s->width = 16*s->mb_width - 2*(h->sps.crop_left + h->sps.crop_right ); |
4303 if(h->sps.frame_mbs_only_flag) | 4303 if(h->sps.frame_mbs_only_flag) |
4304 s->height= 16*s->mb_height - 2*(h->sps.crop_top + h->sps.crop_bottom); | 4304 s->height= 16*s->mb_height - 2*(h->sps.crop_top + h->sps.crop_bottom); |
4305 else | 4305 else |