# HG changeset patch # User michael # Date 1107715386 0 # Node ID 5a28a7dd57d7697e80941bb06bee98a2e015395d # Parent f5fe61bd08ac00a35e3abb8e87b84f1c5e7f6104 emulate (idiotic) MS behavior for inconsistant dimensions diff -r f5fe61bd08ac -r 5a28a7dd57d7 h263.c --- a/h263.c Sun Feb 06 17:01:07 2005 +0000 +++ b/h263.c Sun Feb 06 18:43:06 2005 +0000 @@ -5538,7 +5538,7 @@ skip_bits1(gb); /* marker */ height = get_bits(gb, 13); skip_bits1(gb); /* marker */ - if(width && height){ /* they should be non zero but who knows ... */ + if(width && height && !(s->width && s->avctx->codec_tag == ff_get_fourcc("MP4S"))){ /* they should be non zero but who knows ... */ s->width = width; s->height = height; // printf("width/height: %d %d\n", width, height);