mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 04:26:37 +08:00 
			
		
		
		
	avfilter/copy: add forgotten check
This commit is contained in:
		| @@ -26,8 +26,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) | |||||||
|     AVFrame *out = ff_get_audio_buffer(outlink, in->nb_samples); |     AVFrame *out = ff_get_audio_buffer(outlink, in->nb_samples); | ||||||
|     int ret; |     int ret; | ||||||
|  |  | ||||||
|     if (!out) |     if (!out) { | ||||||
|         ret = AVERROR(ENOMEM); |         ret = AVERROR(ENOMEM); | ||||||
|  |         goto fail; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     ret = av_frame_copy_props(out, in); |     ret = av_frame_copy_props(out, in); | ||||||
|     if (ret < 0) |     if (ret < 0) | ||||||
|   | |||||||
| @@ -50,8 +50,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) | |||||||
|     AVFrame *out = ff_get_video_buffer(outlink, in->width, in->height); |     AVFrame *out = ff_get_video_buffer(outlink, in->width, in->height); | ||||||
|     int ret; |     int ret; | ||||||
|  |  | ||||||
|     if (!out) |     if (!out) { | ||||||
|         ret = AVERROR(ENOMEM); |         ret = AVERROR(ENOMEM); | ||||||
|  |         goto fail; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     ret = av_frame_copy_props(out, in); |     ret = av_frame_copy_props(out, in); | ||||||
|     if (ret < 0) |     if (ret < 0) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Paul B Mahol
					Paul B Mahol