avcodec/av1dec, vaapi_av1: Remove excessive logmessages
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		
							parent
							
								
									315c956cbd
								
							
						
					
					
						commit
						6e4030a07b
					
				| @ -819,19 +819,13 @@ static av_cold int av1_decode_init(AVCodecContext *avctx) | |||||||
| 
 | 
 | ||||||
|     for (int i = 0; i < FF_ARRAY_ELEMS(s->ref); i++) { |     for (int i = 0; i < FF_ARRAY_ELEMS(s->ref); i++) { | ||||||
|         s->ref[i].f = av_frame_alloc(); |         s->ref[i].f = av_frame_alloc(); | ||||||
|         if (!s->ref[i].f) { |         if (!s->ref[i].f) | ||||||
|             av_log(avctx, AV_LOG_ERROR, |  | ||||||
|                    "Failed to allocate reference frame buffer %d.\n", i); |  | ||||||
|             return AVERROR(ENOMEM); |             return AVERROR(ENOMEM); | ||||||
|     } |     } | ||||||
|     } |  | ||||||
| 
 | 
 | ||||||
|     s->cur_frame.f = av_frame_alloc(); |     s->cur_frame.f = av_frame_alloc(); | ||||||
|     if (!s->cur_frame.f) { |     if (!s->cur_frame.f) | ||||||
|         av_log(avctx, AV_LOG_ERROR, |  | ||||||
|                "Failed to allocate current frame buffer.\n"); |  | ||||||
|         return AVERROR(ENOMEM); |         return AVERROR(ENOMEM); | ||||||
|     } |  | ||||||
| 
 | 
 | ||||||
|     ret = ff_cbs_init(&s->cbc, AV_CODEC_ID_AV1, avctx); |     ret = ff_cbs_init(&s->cbc, AV_CODEC_ID_AV1, avctx); | ||||||
|     if (ret < 0) |     if (ret < 0) | ||||||
|  | |||||||
| @ -75,19 +75,13 @@ static int vaapi_av1_decode_init(AVCodecContext *avctx) | |||||||
|     VAAPIAV1DecContext *ctx = avctx->internal->hwaccel_priv_data; |     VAAPIAV1DecContext *ctx = avctx->internal->hwaccel_priv_data; | ||||||
| 
 | 
 | ||||||
|     ctx->tmp_frame = av_frame_alloc(); |     ctx->tmp_frame = av_frame_alloc(); | ||||||
|     if (!ctx->tmp_frame) { |     if (!ctx->tmp_frame) | ||||||
|         av_log(avctx, AV_LOG_ERROR, |  | ||||||
|                "Failed to allocate frame.\n"); |  | ||||||
|         return AVERROR(ENOMEM); |         return AVERROR(ENOMEM); | ||||||
|     } |  | ||||||
| 
 | 
 | ||||||
|     for (int i = 0; i < FF_ARRAY_ELEMS(ctx->ref_tab); i++) { |     for (int i = 0; i < FF_ARRAY_ELEMS(ctx->ref_tab); i++) { | ||||||
|         ctx->ref_tab[i].frame = av_frame_alloc(); |         ctx->ref_tab[i].frame = av_frame_alloc(); | ||||||
|         if (!ctx->ref_tab[i].frame) { |         if (!ctx->ref_tab[i].frame) | ||||||
|             av_log(avctx, AV_LOG_ERROR, |  | ||||||
|                    "Failed to allocate reference table frame %d.\n", i); |  | ||||||
|             return AVERROR(ENOMEM); |             return AVERROR(ENOMEM); | ||||||
|         } |  | ||||||
|         ctx->ref_tab[i].valid = 0; |         ctx->ref_tab[i].valid = 0; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user