Mercurial > libavcodec.hg
comparison 8bps.c @ 2453:f67b63ed036d libavcodec
avoid buf_size == 0 checks in every decoder
author | michael |
---|---|
date | Sun, 23 Jan 2005 18:09:06 +0000 |
parents | d67740c88f86 |
children | 1bf080e490db |
comparison
equal
deleted
inserted
replaced
2452:73a66a4a6ab4 | 2453:f67b63ed036d |
---|---|
68 unsigned char count; | 68 unsigned char count; |
69 unsigned int px_inc; | 69 unsigned int px_inc; |
70 unsigned int planes = c->planes; | 70 unsigned int planes = c->planes; |
71 unsigned char *planemap = c->planemap; | 71 unsigned char *planemap = c->planemap; |
72 | 72 |
73 | |
74 /* no supplementary picture */ | |
75 if (buf_size == 0) | |
76 return 0; | |
77 | |
78 if(c->pic.data[0]) | 73 if(c->pic.data[0]) |
79 avctx->release_buffer(avctx, &c->pic); | 74 avctx->release_buffer(avctx, &c->pic); |
80 | 75 |
81 c->pic.reference = 0; | 76 c->pic.reference = 0; |
82 c->pic.buffer_hints = FF_BUFFER_HINTS_VALID; | 77 c->pic.buffer_hints = FF_BUFFER_HINTS_VALID; |