mirror of
				https://github.com/jojo61/vdr-plugin-softhdcuvid.git
				synced 2025-03-01 10:39:28 +00:00 
			
		
		
		
	One more fix for memleak
This commit is contained in:
		
							
								
								
									
										8
									
								
								codec.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								codec.c
									
									
									
									
									
								
							| @@ -313,8 +313,8 @@ void CodecVideoOpen(VideoDecoder * decoder, int codec_id) | |||||||
|     decoder->VideoCtx->extra_hw_frames = 8; // VIDEO_SURFACES_MAX +1 |     decoder->VideoCtx->extra_hw_frames = 8; // VIDEO_SURFACES_MAX +1 | ||||||
|     if (video_codec->capabilities & (AV_CODEC_CAP_AUTO_THREADS)) { |     if (video_codec->capabilities & (AV_CODEC_CAP_AUTO_THREADS)) { | ||||||
|         Debug(3, "codec: auto threads enabled"); |         Debug(3, "codec: auto threads enabled"); | ||||||
|         decoder->VideoCtx->thread_count = 0; | //        decoder->VideoCtx->thread_count = 0; | ||||||
|     } |    } | ||||||
|  |  | ||||||
|     if (video_codec->capabilities & AV_CODEC_CAP_TRUNCATED) { |     if (video_codec->capabilities & AV_CODEC_CAP_TRUNCATED) { | ||||||
|         Debug(3, "codec: supports truncated packets"); |         Debug(3, "codec: supports truncated packets"); | ||||||
| @@ -326,12 +326,12 @@ void CodecVideoOpen(VideoDecoder * decoder, int codec_id) | |||||||
|     } |     } | ||||||
|     if (video_codec->capabilities & AV_CODEC_CAP_FRAME_THREADS) { |     if (video_codec->capabilities & AV_CODEC_CAP_FRAME_THREADS) { | ||||||
|         Debug(3, "codec: supports frame threads"); |         Debug(3, "codec: supports frame threads"); | ||||||
|         decoder->VideoCtx->thread_count = 0; | //        decoder->VideoCtx->thread_count = 0; | ||||||
|         //   decoder->VideoCtx->thread_type |= FF_THREAD_FRAME; |         //   decoder->VideoCtx->thread_type |= FF_THREAD_FRAME; | ||||||
|     } |     } | ||||||
|     if (video_codec->capabilities & AV_CODEC_CAP_SLICE_THREADS) { |     if (video_codec->capabilities & AV_CODEC_CAP_SLICE_THREADS) { | ||||||
|         Debug(3, "codec: supports slice threads"); |         Debug(3, "codec: supports slice threads"); | ||||||
|         decoder->VideoCtx->thread_count = 0; | //        decoder->VideoCtx->thread_count = 0; | ||||||
|         //   decoder->VideoCtx->thread_type |= FF_THREAD_SLICE; |         //   decoder->VideoCtx->thread_type |= FF_THREAD_SLICE; | ||||||
|     } |     } | ||||||
| //    if (av_opt_set_int(decoder->VideoCtx, "refcounted_frames", 1, 0) < 0) | //    if (av_opt_set_int(decoder->VideoCtx, "refcounted_frames", 1, 0) < 0) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user