viddec3test: fixed --inloop Segmentation fault issue.
authorAmai Prashanth Kumar <x0270680@ti.com>
Thu, 7 Sep 2017 16:24:16 +0000 (16:24 +0000)
committerKarthik Ramanan <a0393906@ti.com>
Thu, 7 Sep 2017 10:40:29 +0000 (16:10 +0530)
Signed-off-by: Amai Prashanth Kumar <x0270680@ti.com>
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
viddec3test.c

index dc50391a1d8432e54af66bdf6a90dc9991dbe964..c9d685491aaa224e41e97b2dce33fcd743962dd8 100644 (file)
@@ -125,10 +125,10 @@ decoder_close(struct decoder *decoder)
 static struct decoder *
 decoder_open(int argc, char **argv)
 {
-       struct decoder *decoder = NULL;
+       static struct decoder *decoder = NULL;
        char *infile = NULL;
        int i;
-       int width, height, padded_width, padded_height;
+       static int width, height, padded_width, padded_height;
        Engine_Error ec;
        XDAS_Int32 err;