Merge commit 'c71c80f53b6a63fd6360d9de5a262f9e7c85681f'
* commit 'c71c80f53b6a63fd6360d9de5a262f9e7c85681f': pthread: unref already decoded frames when flushing the decoder Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
						commit
						084510d12a
					
				@ -928,6 +928,7 @@ void ff_thread_flush(AVCodecContext *avctx)
 | 
			
		||||
        PerThreadContext *p = &fctx->threads[i];
 | 
			
		||||
        // Make sure decode flush calls with size=0 won't return old frames
 | 
			
		||||
        p->got_frame = 0;
 | 
			
		||||
        av_frame_unref(&p->frame);
 | 
			
		||||
 | 
			
		||||
        release_delayed_buffers(p);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user