diff options
author | 2013-06-18 13:33:28 +0000 | |
---|---|---|
committer | 2013-06-18 13:33:28 +0000 | |
commit | 93b7cf81734649f750012f67c9123c88b30cc8c1 (patch) | |
tree | e7fdcf9b2e7278c9179651063ec68db69cf1bb1d | |
parent | 0137a8a49d9664aa07d4a19ddf9ac551b337574b (diff) |
treesize in laserdisc CHD was uninitialized when input video had no audio channels [Oliver Stöneberg]
-rw-r--r-- | src/lib/util/avhuff.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/util/avhuff.c b/src/lib/util/avhuff.c index de8353abfb3..f21d48b4987 100644 --- a/src/lib/util/avhuff.c +++ b/src/lib/util/avhuff.c @@ -269,6 +269,11 @@ avhuff_error avhuff_encoder::encode_data(const UINT8 *source, UINT8 *dest, UINT3 for (int chnum = 0; chnum < channels; chnum++) dstoffs += (dest[10 + 2 * chnum] << 8) + dest[11 + 2 * chnum]; } + else + { + dest[8] = 0; + dest[9] = 0; + } // encode the video data if (width > 0 && height > 0) |