|  | @@ -451,7 +451,11 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb) | 
														
													
														
															
																|  |  | h = get_bits(gb, 8) + 1; |  |  | h = get_bits(gb, 8) + 1; | 
														
													
														
															
																|  |  | v->s.avctx->sample_aspect_ratio = (AVRational){w, h}; |  |  | v->s.avctx->sample_aspect_ratio = (AVRational){w, h}; | 
														
													
														
															
																|  |  | } else { |  |  | } else { | 
														
													
														
															
																|  |  | av_reduce(&v->s.avctx->sample_aspect_ratio.num, |  |  |  | 
														
													
														
															
																|  |  |  |  |  | if (v->s.avctx->width  > v->max_coded_width || | 
														
													
														
															
																|  |  |  |  |  | v->s.avctx->height > v->max_coded_height) { | 
														
													
														
															
																|  |  |  |  |  | avpriv_request_sample(v->s.avctx, "Huge resolution"); | 
														
													
														
															
																|  |  |  |  |  | } else | 
														
													
														
															
																|  |  |  |  |  | av_reduce(&v->s.avctx->sample_aspect_ratio.num, | 
														
													
														
															
																|  |  | &v->s.avctx->sample_aspect_ratio.den, |  |  | &v->s.avctx->sample_aspect_ratio.den, | 
														
													
														
															
																|  |  | v->s.avctx->height * w, |  |  | v->s.avctx->height * w, | 
														
													
														
															
																|  |  | v->s.avctx->width * h, |  |  | v->s.avctx->width * h, | 
														
													
												
													
														
															
																|  | 
 |