Mercurial > libavcodec.hg
comparison xl.c @ 2453:f67b63ed036d libavcodec
avoid buf_size == 0 checks in every decoder
author | michael |
---|---|
date | Sun, 23 Jan 2005 18:09:06 +0000 |
parents | 1180a04d64c5 |
children | ef2149182f1c |
comparison
equal
deleted
inserted
replaced
2452:73a66a4a6ab4 | 2453:f67b63ed036d |
---|---|
46 uint8_t *Y, *U, *V; | 46 uint8_t *Y, *U, *V; |
47 int i, j; | 47 int i, j; |
48 int stride; | 48 int stride; |
49 uint32_t val; | 49 uint32_t val; |
50 int y0, y1, y2, y3, c0, c1; | 50 int y0, y1, y2, y3, c0, c1; |
51 | |
52 | |
53 /* special case for last picture */ | |
54 if (buf_size == 0) { | |
55 return 0; | |
56 } | |
57 | 51 |
58 if(p->data[0]) | 52 if(p->data[0]) |
59 avctx->release_buffer(avctx, p); | 53 avctx->release_buffer(avctx, p); |
60 | 54 |
61 p->reference = 0; | 55 p->reference = 0; |