Commit 7df421b2 authored by Philippe Gorley's avatar Philippe Gorley Committed by Philippe Gorley

decoder: don't warn about format if none was given

Change-Id: I24421c2645e2fd919f54b9fd499592fc0d2b2ac3
parent 46fdc9d9
......@@ -76,7 +76,7 @@ int MediaDecoder::openInput(const DeviceParams& params)
inputParams_ = params;
AVInputFormat *iformat = av_find_input_format(params.format.c_str());
if (!iformat)
if (!iformat && !params.format.empty())
RING_WARN("Cannot find format \"%s\"", params.format.c_str());
if (params.width and params.height) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment