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