| 
																	
																	
																		
																	
																	
																 | 
																@@ -586,11 +586,6 @@ static int nppscale_filter_frame(AVFilterLink *link, AVFrame *in) | 
															
														
														
													
														
															
																 | 
																 | 
																        goto fail; | 
																 | 
																 | 
																        goto fail; | 
															
														
														
													
														
															
																 | 
																 | 
																    } | 
																 | 
																 | 
																    } | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																    av_reduce(&out->sample_aspect_ratio.num, &out->sample_aspect_ratio.den, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																              (int64_t)in->sample_aspect_ratio.num * outlink->h * link->w, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																              (int64_t)in->sample_aspect_ratio.den * outlink->w * link->h, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																              INT_MAX); | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																    err = device_hwctx->internal->cuda_dl->cuCtxPushCurrent(device_hwctx->cuda_ctx); | 
																 | 
																 | 
																    err = device_hwctx->internal->cuda_dl->cuCtxPushCurrent(device_hwctx->cuda_ctx); | 
															
														
														
													
														
															
																 | 
																 | 
																    if (err != CUDA_SUCCESS) { | 
																 | 
																 | 
																    if (err != CUDA_SUCCESS) { | 
															
														
														
													
														
															
																 | 
																 | 
																        ret = AVERROR_UNKNOWN; | 
																 | 
																 | 
																        ret = AVERROR_UNKNOWN; | 
															
														
														
													
												
													
														
															
																| 
																	
																	
																	
																		
																	
																 | 
																@@ -603,6 +598,11 @@ static int nppscale_filter_frame(AVFilterLink *link, AVFrame *in) | 
															
														
														
													
														
															
																 | 
																 | 
																    if (ret < 0) | 
																 | 
																 | 
																    if (ret < 0) | 
															
														
														
													
														
															
																 | 
																 | 
																        goto fail; | 
																 | 
																 | 
																        goto fail; | 
															
														
														
													
														
															
																 | 
																 | 
																
  | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    av_reduce(&out->sample_aspect_ratio.num, &out->sample_aspect_ratio.den, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																              (int64_t)in->sample_aspect_ratio.num * outlink->h * link->w, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																              (int64_t)in->sample_aspect_ratio.den * outlink->w * link->h, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																              INT_MAX); | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																    av_frame_free(&in); | 
																 | 
																 | 
																    av_frame_free(&in); | 
															
														
														
													
														
															
																 | 
																 | 
																    return ff_filter_frame(outlink, out); | 
																 | 
																 | 
																    return ff_filter_frame(outlink, out); | 
															
														
														
													
														
															
																 | 
																 | 
																fail: | 
																 | 
																 | 
																fail: | 
															
														
														
													
												
													
														
															
																| 
																	
																		
																	
																	
																	
																 | 
																
  |