descampsa / yuv2rgb

C99 library for fast image conversion between yuv420p and rgb24
BSD 3-Clause "New" or "Revised" License
170 stars 62 forks source link

`PPM` image read error #4

Closed LuoZijun closed 7 years ago

LuoZijun commented 7 years ago

the function readPPM at test_yuv_rgb.c looks not working.

image

descampsa commented 7 years ago

Is it an image generated by the program itself (in yuv2rgb mode), or by an external editor? Some editors add comments in the header, and that is not supported by the readPPM function.

LuoZijun commented 7 years ago

@descampsa generated by the program itself (in yuv2rgb mode).

descampsa commented 7 years ago

Ok, i have fixed one bug, a string used in strcmp that was not nul terminated. That was probably the cause of your problem.

Could you try again and confirm that the problem is fixed? Thanks

LuoZijun commented 7 years ago

the problem is already fixed. 👍