mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
msm: vidc: Return ENOMEM for VP9 decode overload case
Return ENOMEM instead of ENOTSUPP when VP9 decode overload occurs so that userspace can handle this error case correctly. ENOTSUPP is not available in userspace. Change-Id: I5260812bb00fde7eed02a29943a67af038e3c001 Signed-off-by: Mihir Ganu <mganu@codeaurora.org>
This commit is contained in:
parent
582eefa819
commit
dc4de60631
1 changed files with 1 additions and 1 deletions
|
|
@ -666,7 +666,7 @@ int msm_vdec_s_fmt(struct msm_vidc_inst *inst, struct v4l2_format *f)
|
|||
if (f->fmt.pix_mp.pixelformat == V4L2_PIX_FMT_VP9) {
|
||||
if (msm_vidc_check_for_vp9d_overload(inst->core)) {
|
||||
s_vpr_e(inst->sid, "VP9 Decode overload\n");
|
||||
rc = -ENOTSUPP;
|
||||
rc = -ENOMEM;
|
||||
goto err_invalid_fmt;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue