Chromium Code Reviews| Index: source/libvpx/webmdec.cc |
| diff --git a/source/libvpx/webmdec.cc b/source/libvpx/webmdec.cc |
| index 1020d046ba872bf416d5f4009e01c68de9b8c103..f541cfecc1692ebb6894d3ffa5efc42970249c2a 100644 |
| --- a/source/libvpx/webmdec.cc |
| +++ b/source/libvpx/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; |
| } |