Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 234ec54a authored by Harish Mahendrakar's avatar Harish Mahendrakar Committed by Automerger Merge Worker
Browse files

m4v_h263: Return error for zero width and height am: 5d8def9a am: 54c13ace...

m4v_h263: Return error for zero width and height am: 5d8def9a am: 54c13ace am: acb7a353 am: 07ff5a7e am: c6aa4cdc am: 10d0f99e am: ef57c62b

Change-Id: I823d1e1699edb9695532d2f44b43ddc6a6345a0e
parents 7ca34c28 ef57c62b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -409,7 +409,9 @@ decode_vol:
        if (!BitstreamRead1Bits(stream)) return PV_FAIL;

        /* video_object_layer_width (13 bits) */
        video->displayWidth = video->width = (int) BitstreamReadBits16(stream, 13);
        tmpvar = BitstreamReadBits16(stream, 13);
        if (!tmpvar) return PV_FAIL;
        video->displayWidth = video->width = tmpvar;

        /* round up to a multiple of MB_SIZE.   08/09/2000 */
        video->width = (video->width + 15) & -16;
@@ -419,7 +421,9 @@ decode_vol:
        if (!BitstreamRead1Bits(stream)) return PV_FAIL;

        /* video_object_layer_height (13 bits) */
        video->displayHeight = video->height = (int) BitstreamReadBits16(stream, 13);
        tmpvar = BitstreamReadBits16(stream, 13);
        if (!tmpvar) return PV_FAIL;
        video->displayHeight = video->height = tmpvar;

        /* round up to a multiple of MB_SIZE.   08/09/2000 */
        video->height = (video->height + 15) & -16;