You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Merge commit '9cbf2d78f0a9c19129e7a70b2281a450d386c6d9'
* commit '9cbf2d78f0a9c19129e7a70b2281a450d386c6d9': pthread_frame: unref decoded frames on failure Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -152,6 +152,13 @@ static attribute_align_arg void *frame_worker_thread(void *arg) | ||||
|         p->got_frame = 0; | ||||
|         p->result = codec->decode(avctx, p->frame, &p->got_frame, &p->avpkt); | ||||
|  | ||||
|         if ((p->result < 0 || !p->got_frame) && p->frame->buf[0]) { | ||||
|             if (avctx->internal->allocate_progress) | ||||
|                 av_log(avctx, AV_LOG_ERROR, "A frame threaded decoder did not " | ||||
|                        "free the frame on failure. This is a bug, please report it.\n"); | ||||
|             av_frame_unref(p->frame); | ||||
|         } | ||||
|  | ||||
|         if (p->state == STATE_SETTING_UP) ff_thread_finish_setup(avctx); | ||||
|  | ||||
|         pthread_mutex_lock(&p->progress_mutex); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user