comparison lzo.c @ 3049:9f85c9cf6034 libavcodec

10l, get_byte returning 0 on error can cause a hang. So let's try with 1 instead...
author reimar
date Sun, 15 Jan 2006 21:33:06 +0000
parents a434a3752e78
children a2f611d6c34d
comparison
equal deleted inserted replaced
3048:986716310195 3049:9f85c9cf6034
32 */ 32 */
33 static inline int get_byte(LZOContext *c) { 33 static inline int get_byte(LZOContext *c) {
34 if (c->in < c->in_end) 34 if (c->in < c->in_end)
35 return *c->in++; 35 return *c->in++;
36 c->error |= LZO_INPUT_DEPLETED; 36 c->error |= LZO_INPUT_DEPLETED;
37 return 0; 37 return 1;
38 } 38 }
39 39
40 /** 40 /**
41 * \brief decode a length value in the coding used by lzo 41 * \brief decode a length value in the coding used by lzo
42 * \param x previous byte value 42 * \param x previous byte value