Skip to content
Snippets Groups Projects
Commit 7df421b2 authored by Philippe Gorley's avatar Philippe Gorley Committed by Philippe Gorley
Browse files

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

Change-Id: I24421c2645e2fd919f54b9fd499592fc0d2b2ac3
parent 46fdc9d9
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ int MediaDecoder::openInput(const DeviceParams& params) ...@@ -76,7 +76,7 @@ int MediaDecoder::openInput(const DeviceParams& params)
inputParams_ = params; inputParams_ = params;
AVInputFormat *iformat = av_find_input_format(params.format.c_str()); 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()); RING_WARN("Cannot find format \"%s\"", params.format.c_str());
if (params.width and params.height) { if (params.width and params.height) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment