diff options
Diffstat (limited to 'media/tools/media_bench')
-rw-r--r-- | media/tools/media_bench/media_bench.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/tools/media_bench/media_bench.cc b/media/tools/media_bench/media_bench.cc index 67e4569..1bf51f2 100644 --- a/media/tools/media_bench/media_bench.cc +++ b/media/tools/media_bench/media_bench.cc @@ -349,8 +349,8 @@ int main(int argc, const char** argv) { // Initialize our codec. if (avcodec_open(codec_context, codec) < 0) { std::cerr << "Error: Could not open codec " - << codec_context->codec->name << " for " - << in_path.value() << std::endl; + << (codec_context->codec ? codec_context->codec->name : "(NULL)") + << " for " << in_path.value() << std::endl; return 1; } |