aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-12-19 10:54:31 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-12-19 10:54:31 +0100
commit8760e6e9820d145bc7ec45272b7030e021a3964c (patch)
tree6f8ecb3b7064fd0d83d79930debc7618e4c7159a
parent8afdf3cebd09c0e2e9cf94da00a5698e3ffba6c0 (diff)
edid-decode: drop unnecessary hash calc message
If only Dolby TrueHD is supported, then don't check bit 1 regarding the hash calculation, since that applies only to object audio PCM or channel-based PCM. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reported-by: SweetLow <sweetlow@tut.by>
-rw-r--r--parse-cta-block.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/parse-cta-block.cpp b/parse-cta-block.cpp
index 2411040..98ec2ee 100644
--- a/parse-cta-block.cpp
+++ b/parse-cta-block.cpp
@@ -332,12 +332,13 @@ static void cta_audio_block(const unsigned char *x, unsigned length)
if (x[i+2] & 2)
printf(" Supports Joint Object Coding with ACMOD28\n");
} else if (format == 12) {
- if (x[i+2] & 1)
+ if (x[i+2] & 1) {
printf(" Supports Dolby TrueHD, object audio PCM and channel-based PCM\n");
- else
+ printf(" Hash calculation %srequired for object audio PCM or channel-based PCM\n",
+ (x[i+2] & 2) ? "not " : "");
+ } else {
printf(" Supports only Dolby TrueHD\n");
- printf(" Hash calculation %srequired for object audio PCM or channel-based PCM\n",
- (x[i+2] & 2) ? "not " : "");
+ }
} else if (format == 14) {
printf(" Profile: %u\n", x[i+2] & 7);
} else if (format >= 9 && format <= 13) {

Privacy Policy