Mercurial > libavcodec.hg
changeset 7305:f80042115f20 libavcodec
Make frames non reference by default, so they are disposed of automatically
in MPV_frame_start() if we break out due to an error at a random place.
Fixes issue334
author | michael |
---|---|
date | Fri, 18 Jul 2008 20:59:17 +0000 |
parents | ac25a6f7147e |
children | 7950572e58eb |
files | h264.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Fri Jul 18 12:03:21 2008 +0000 +++ b/h264.c Fri Jul 18 20:59:17 2008 +0000 @@ -2259,6 +2259,7 @@ memset(h->slice_table, -1, (s->mb_height*s->mb_stride-1) * sizeof(uint8_t)); // s->decode= (s->flags&CODEC_FLAG_PSNR) || !s->encoding || s->current_picture.reference /*|| h->contains_intra*/ || 1; + s->current_picture_ptr->reference= 0; return 0; }