mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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 Originally committed as revision 14283 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
44eb047a5b
commit
197ea52443
@ -2259,6 +2259,7 @@ static int frame_start(H264Context *h){
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user