comparison 4xm.c @ 12128:ee740a4e80c5 libavcodec

bswap: change ME to NE in macro names Other parts of FFmpeg use NE (native endian) rather than ME (machine). This makes it consistent.
author mru
date Sat, 10 Jul 2010 22:09:01 +0000
parents 7dd2a45249a9
children 8b28e74de2c0
comparison
equal deleted inserted replaced
12127:9ba7d2a5b20a 12128:ee740a4e80c5
331 src += f->mv[ *f->bytestream++ ]; 331 src += f->mv[ *f->bytestream++ ];
332 if(start > src || src > end){ 332 if(start > src || src > end){
333 av_log(f->avctx, AV_LOG_ERROR, "mv out of pic\n"); 333 av_log(f->avctx, AV_LOG_ERROR, "mv out of pic\n");
334 return; 334 return;
335 } 335 }
336 mcdc(dst, src, log2w, h, stride, 1, le2me_16(*f->wordstream++)); 336 mcdc(dst, src, log2w, h, stride, 1, le2ne_16(*f->wordstream++));
337 }else if(code == 5){ 337 }else if(code == 5){
338 mcdc(dst, src, log2w, h, stride, 0, le2me_16(*f->wordstream++)); 338 mcdc(dst, src, log2w, h, stride, 0, le2ne_16(*f->wordstream++));
339 }else if(code == 6){ 339 }else if(code == 6){
340 if(log2w){ 340 if(log2w){
341 dst[0] = le2me_16(*f->wordstream++); 341 dst[0] = le2ne_16(*f->wordstream++);
342 dst[1] = le2me_16(*f->wordstream++); 342 dst[1] = le2ne_16(*f->wordstream++);
343 }else{ 343 }else{
344 dst[0 ] = le2me_16(*f->wordstream++); 344 dst[0 ] = le2ne_16(*f->wordstream++);
345 dst[stride] = le2me_16(*f->wordstream++); 345 dst[stride] = le2ne_16(*f->wordstream++);
346 } 346 }
347 } 347 }
348 } 348 }
349 349
350 static int decode_p_frame(FourXContext *f, const uint8_t *buf, int length){ 350 static int decode_p_frame(FourXContext *f, const uint8_t *buf, int length){