# HG changeset patch # User bcoudurier # Date 1205432813 0 # Node ID 9fc086c2269315bfcae2ec11948fa75687b808ba # Parent c8c58c35feef68cfc4f3660057606a328a194983 do not fail badly if aspect ratio is 0/forbidden, fix issue 369 diff -r c8c58c35feef -r 9fc086c22693 mpeg12.c --- a/mpeg12.c Thu Mar 13 18:10:58 2008 +0000 +++ b/mpeg12.c Thu Mar 13 18:26:53 2008 +0000 @@ -1970,8 +1970,6 @@ (width % 2) != 0 || (height % 2) != 0) return -1; s->aspect_ratio_info= get_bits(&s->gb, 4); - if (s->aspect_ratio_info == 0) - return -1; s->frame_rate_index = get_bits(&s->gb, 4); if (s->frame_rate_index == 0 || s->frame_rate_index > 13) return -1;