From: Vignesh Venkatasubramanian Date: Thu, 10 Sep 2015 17:44:59 +0000 (-0700) Subject: webmdec: Handle codec id being NULL. X-Git-Tag: v1.5.0~183 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09969ac9a29cdf8528e6980425a6df2c13674100;p=libvpx 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 --- diff --git a/webmdec.cc b/webmdec.cc index 1020d046b..f541cfecc 100644 --- a/webmdec.cc +++ b/webmdec.cc @@ -94,7 +94,7 @@ int file_is_webm(struct WebmInputContext *webm_ctx, } } - if (video_track == NULL) { + if (video_track == NULL || video_track->GetCodecId() == NULL) { rewind_and_reset(webm_ctx, vpx_ctx); return 0; }