Mercurial > libavcodec.hg
comparison gifdec.c @ 4719:524ef62965bf libavcodec
actually return bytes read
author | bcoudurier |
---|---|
date | Sun, 25 Mar 2007 00:00:56 +0000 |
parents | 9962405d2d18 |
children | 7775ba23c931 |
comparison
equal
deleted
inserted
replaced
4718:9962405d2d18 | 4719:524ef62965bf |
---|---|
315 if (ret < 0) | 315 if (ret < 0) |
316 return ret; | 316 return ret; |
317 | 317 |
318 *picture = s->picture; | 318 *picture = s->picture; |
319 *data_size = sizeof(AVPicture); | 319 *data_size = sizeof(AVPicture); |
320 return 0; | 320 return s->bytestream - buf; |
321 } | 321 } |
322 | 322 |
323 static int gif_decode_close(AVCodecContext *avctx) | 323 static int gif_decode_close(AVCodecContext *avctx) |
324 { | 324 { |
325 GifState *s = avctx->priv_data; | 325 GifState *s = avctx->priv_data; |