You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/vp8: Check mutex init
Fixes: CID1598556 Unchecked return value
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4ac7405aaf)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
			
			
This commit is contained in:
		| @@ -260,7 +260,11 @@ int update_dimensions(VP8Context *s, int width, int height, int is_vp7) | ||||
|             return AVERROR(ENOMEM); | ||||
|         } | ||||
| #if HAVE_THREADS | ||||
|         pthread_mutex_init(&s->thread_data[i].lock, NULL); | ||||
|         ret = pthread_mutex_init(&s->thread_data[i].lock, NULL); | ||||
|         if (ret) { | ||||
|             free_buffers(s); | ||||
|             return AVERROR(ret); | ||||
|         } | ||||
|         pthread_cond_init(&s->thread_data[i].cond, NULL); | ||||
| #endif | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user