Mercurial > libavcodec.hg
comparison qdrw.c @ 2453:f67b63ed036d libavcodec
avoid buf_size == 0 checks in every decoder
author | michael |
---|---|
date | Sun, 23 Jan 2005 18:09:06 +0000 |
parents | c443a6af19a7 |
children | d74d342cabb9 |
comparison
equal
deleted
inserted
replaced
2452:73a66a4a6ab4 | 2453:f67b63ed036d |
---|---|
40 AVFrame * const p= (AVFrame*)&a->pic; | 40 AVFrame * const p= (AVFrame*)&a->pic; |
41 uint8_t* outdata; | 41 uint8_t* outdata; |
42 int colors; | 42 int colors; |
43 int i; | 43 int i; |
44 | 44 |
45 /* special case for last picture */ | |
46 if (buf_size == 0) { | |
47 return 0; | |
48 } | |
49 | |
50 if(p->data[0]) | 45 if(p->data[0]) |
51 avctx->release_buffer(avctx, p); | 46 avctx->release_buffer(avctx, p); |
52 | 47 |
53 p->reference= 0; | 48 p->reference= 0; |
54 if(avctx->get_buffer(avctx, p) < 0){ | 49 if(avctx->get_buffer(avctx, p) < 0){ |