Skip to content
Snippets Groups Projects
Commit 8f0e570b authored by Philippe Gorley's avatar Philippe Gorley Committed by Adrien Béraud
Browse files

accel: ignore codec level

Hardware decoding will still be used even if the codec level is unknown
or higher than the hardware's reported supported level.

From FFmpeg: "It's generally a good idea to pass this flag unless you
have a specificreason not to, as hardware tends to under-report
supported levels."

Change-Id: I83614b0eab6166a42973f062e666783c2a8e7627
parent 17f31b59
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,8 @@ getFormatCb(AVCodecContext* codecCtx, const AVPixelFormat* formats)
JAMI_DBG() << "Found compatible hardware format for "
<< avcodec_get_name(static_cast<AVCodecID>(accel->getCodecId()))
<< " decoder with " << accel->getName();
// hardware tends to under-report supported levels
codecCtx->hwaccel_flags |= AV_HWACCEL_FLAG_IGNORE_LEVEL;
return formats[i];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment