Mercurial > libavcodec.hg
diff dv.c @ 1228:d63e0185a90f libavcodec
release buffer cleanup
author | michaelni |
---|---|
date | Tue, 06 May 2003 20:43:37 +0000 |
parents | adcc6f345202 |
children | b8e1c17b8d7d |
line wrap: on
line diff
--- a/dv.c Tue May 06 03:11:20 2003 +0000 +++ b/dv.c Tue May 06 20:43:37 2003 +0000 @@ -580,6 +580,9 @@ else avctx->aspect_ratio = 4.0 / 3.0; + if(s->picture.data[0]) + avctx->release_buffer(avctx, &s->picture); + s->picture.reference= 0; if(avctx->get_buffer(avctx, &s->picture) < 0) { fprintf(stderr, "get_buffer() failed\n"); @@ -617,8 +620,6 @@ *data_size = sizeof(AVFrame); *(AVFrame*)data= s->picture; - avctx->release_buffer(avctx, &s->picture); - return packet_size; }