shithub: libvpx

Download patch

ref: 5327ea0698245b78e5a3c4384fbd8f6723a47d5b
parent: 362f763cfe56d06ab667bf042a0614af32da711f
parent: 5551ef0ef4fd3271330fa5a2fbdfe70d4d2a1d2e
author: John Koleszar <jkoleszar@google.com>
date: Thu Nov 4 20:05:05 EDT 2010

Merge remote branch 'internal/upstream' into HEAD

--- a/vpxdec.c
+++ b/vpxdec.c
@@ -542,6 +542,7 @@
     *fps_den = tstamp / 1000;
     return 0;
 fail:
+    nestegg_destroy(input->nestegg_ctx);
     input->nestegg_ctx = NULL;
     rewind(input->infile);
     return 1;
@@ -878,7 +879,13 @@
         }
 
         if(input.kind == WEBM_FILE)
-            webm_guess_framerate(&input, &fps_den, &fps_num);
+            if(webm_guess_framerate(&input, &fps_den, &fps_num))
+            {
+                fprintf(stderr, "Failed to guess framerate -- error parsing "
+                                "webm file?\n");
+                return EXIT_FAILURE;
+            }
+
 
         /*Note: We can't output an aspect ratio here because IVF doesn't
            store one, and neither does VP8.