comparison h263.c @ 2503:5a28a7dd57d7 libavcodec

emulate (idiotic) MS behavior for inconsistant dimensions
author michael
date Sun, 06 Feb 2005 18:43:06 +0000
parents f5fe61bd08ac
children e25782262d7d
comparison
equal deleted inserted replaced
2502:f5fe61bd08ac 2503:5a28a7dd57d7
5536 skip_bits1(gb); /* marker */ 5536 skip_bits1(gb); /* marker */
5537 width = get_bits(gb, 13); 5537 width = get_bits(gb, 13);
5538 skip_bits1(gb); /* marker */ 5538 skip_bits1(gb); /* marker */
5539 height = get_bits(gb, 13); 5539 height = get_bits(gb, 13);
5540 skip_bits1(gb); /* marker */ 5540 skip_bits1(gb); /* marker */
5541 if(width && height){ /* they should be non zero but who knows ... */ 5541 if(width && height && !(s->width && s->avctx->codec_tag == ff_get_fourcc("MP4S"))){ /* they should be non zero but who knows ... */
5542 s->width = width; 5542 s->width = width;
5543 s->height = height; 5543 s->height = height;
5544 // printf("width/height: %d %d\n", width, height); 5544 // printf("width/height: %d %d\n", width, height);
5545 } 5545 }
5546 } 5546 }