# HG changeset patch # User michael # Date 1216414757 0 # Node ID f80042115f206801481bd9a9547bc0cdbc69ed0e # Parent ac25a6f7147e3fadc22f47c78da4f120fb25bae9 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 diff -r ac25a6f7147e -r f80042115f20 h264.c --- 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; }