Skip to content

Commit 134da37

Browse files
committed
Merge pull request #102859 from berarma/theora_yuv_fix
Theora: Fix YUV422/444 to RGB conversion
2 parents 59d75a7 + 0882702 commit 134da37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

thirdparty/misc/yuv2rgb.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ship it.
3030
* 2. At some point or another the code relied on the byte order of a uint32_t, this has been fixed
3131
* 3. Output has been reordered to struct { uint8_t r, g, b, a; } precisely in accordance with the function names
3232
* 4. Removing unused 'dither' parameter
33+
* 5. Fix last line not being converted (and therefore was transparent)
3334
*/
3435

3536
#ifndef YUV2RGB_H
@@ -848,7 +849,6 @@ static void yuv422_2_rgb8888(uint8_t *dst_ptr,
848849
int32_t uv_span,
849850
int32_t dst_span)
850851
{
851-
height -= 1;
852852
while (height > 0)
853853
{
854854
height -= width<<16;
@@ -1020,7 +1020,6 @@ static void yuv444_2_rgb8888(uint8_t *dst_ptr,
10201020
int32_t uv_span,
10211021
int32_t dst_span)
10221022
{
1023-
height -= 1;
10241023
while (height > 0)
10251024
{
10261025
height -= width<<16;

0 commit comments

Comments
 (0)