shithub: libvpx

Download patch

ref: 09969ac9a29cdf8528e6980425a6df2c13674100
parent: 2ff108aac65c54154c5b181a8f00c4fe7a7d2d46
author: Vignesh Venkatasubramanian <[email protected]>
date: Thu Sep 10 06:44:59 EDT 2015

webmdec: Handle codec id being NULL.

WebM files could have CodecId missing in the track headers. Treat those files as
unknown input file type in vpxdec.

Fixes issue #1064.

Change-Id: I6c3bb7b4bd3a4f5c244312482a5996f8b68db3f3

--- a/webmdec.cc
+++ b/webmdec.cc
@@ -94,7 +94,7 @@
     }
   }
 
-  if (video_track == NULL) {
+  if (video_track == NULL || video_track->GetCodecId() == NULL) {
     rewind_and_reset(webm_ctx, vpx_ctx);
     return 0;
   }