Merge "compress: fix return value of is_codec_supported" am: 53414059ef am: 6b6d429d1d am: 786c188d00 am: d7ff18e034 am: c532332a09

Original change: https://android-review.googlesource.com/c/platform/external/tinycompress/+/2167162

Change-Id: Iac50c4aacc7f20d2fdd0b7cd15204dff04873b57
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Christopher Ferris 2022-08-16 01:43:31 +00:00 committed by Automerger Merge Worker
commit 80b3183143

View file

@ -574,9 +574,11 @@ bool is_codec_supported(unsigned int card, unsigned int device,
ops = &compr_hw_ops;
fd = ops->open(card, device, flags, &data, NULL);
if (fd < 0)
return oops(&bad_compress, errno, "cannot open card %u, device %u",
if (fd < 0) {
oops(&bad_compress, errno, "cannot open card %u, device %u",
card, device);
return false;
}
ret = _is_codec_type_supported(ops, data, codec);