You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Drop unnecessary prefix from *sink* variable and struct names.
This commit is contained in:
		
							
								
								
									
										6
									
								
								avconv.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								avconv.c
									
									
									
									
									
								
							| @@ -550,7 +550,7 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost) | ||||
|     /** filter graph containing all filters including input & output */ | ||||
|     AVCodecContext *codec = ost->st->codec; | ||||
|     AVCodecContext *icodec = ist->st->codec; | ||||
|     AVSinkContext avsink_ctx = { .pix_fmt = codec->pix_fmt }; | ||||
|     SinkContext sink_ctx = { .pix_fmt = codec->pix_fmt }; | ||||
|     AVRational sample_aspect_ratio; | ||||
|     char args[255]; | ||||
|     int ret; | ||||
| @@ -570,8 +570,8 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost) | ||||
|                                        "src", args, NULL, ost->graph); | ||||
|     if (ret < 0) | ||||
|         return ret; | ||||
|     ret = avfilter_graph_create_filter(&ost->output_video_filter, &avsink, | ||||
|                                        "out", NULL, &avsink_ctx, ost->graph); | ||||
|     ret = avfilter_graph_create_filter(&ost->output_video_filter, &sink, | ||||
|                                        "out", NULL, &sink_ctx, ost->graph); | ||||
|     if (ret < 0) | ||||
|         return ret; | ||||
|     last_filter = ost->input_video_filter; | ||||
|   | ||||
							
								
								
									
										6
									
								
								avplay.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								avplay.c
									
									
									
									
									
								
							| @@ -1706,7 +1706,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c | ||||
| { | ||||
|     char sws_flags_str[128]; | ||||
|     int ret; | ||||
|     AVSinkContext avsink_ctx = { .pix_fmt = PIX_FMT_YUV420P }; | ||||
|     SinkContext sink_ctx = { .pix_fmt = PIX_FMT_YUV420P }; | ||||
|     AVFilterContext *filt_src = NULL, *filt_out = NULL; | ||||
|     snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%d", sws_flags); | ||||
|     graph->scale_sws_opts = av_strdup(sws_flags_str); | ||||
| @@ -1714,8 +1714,8 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c | ||||
|     if ((ret = avfilter_graph_create_filter(&filt_src, &input_filter, "src", | ||||
|                                             NULL, is, graph)) < 0) | ||||
|         return ret; | ||||
|     if ((ret = avfilter_graph_create_filter(&filt_out, &avsink, "out", | ||||
|                                             NULL, &avsink_ctx, graph)) < 0) | ||||
|     if ((ret = avfilter_graph_create_filter(&filt_out, &sink, "out", | ||||
|                                             NULL, &sink_ctx, graph)) < 0) | ||||
|         return ret; | ||||
|  | ||||
|     if (vfilters) { | ||||
|   | ||||
							
								
								
									
										20
									
								
								cmdutils.c
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								cmdutils.c
									
									
									
									
									
								
							| @@ -1031,34 +1031,34 @@ AVDictionary **setup_find_stream_info_opts(AVFormatContext *s, | ||||
|  | ||||
| #if CONFIG_AVFILTER | ||||
|  | ||||
| static int avsink_init(AVFilterContext *ctx, const char *args, void *opaque) | ||||
| static int sink_init(AVFilterContext *ctx, const char *args, void *opaque) | ||||
| { | ||||
|     AVSinkContext *priv = ctx->priv; | ||||
|     SinkContext *priv = ctx->priv; | ||||
|  | ||||
|     if (!opaque) | ||||
|         return AVERROR(EINVAL); | ||||
|     *priv = *(AVSinkContext *)opaque; | ||||
|     *priv = *(SinkContext *)opaque; | ||||
|  | ||||
|     return 0; | ||||
| } | ||||
|  | ||||
| static void null_end_frame(AVFilterLink *inlink) { } | ||||
|  | ||||
| static int avsink_query_formats(AVFilterContext *ctx) | ||||
| static int sink_query_formats(AVFilterContext *ctx) | ||||
| { | ||||
|     AVSinkContext *priv = ctx->priv; | ||||
|     SinkContext *priv = ctx->priv; | ||||
|     enum PixelFormat pix_fmts[] = { priv->pix_fmt, PIX_FMT_NONE }; | ||||
|  | ||||
|     avfilter_set_common_formats(ctx, avfilter_make_format_list(pix_fmts)); | ||||
|     return 0; | ||||
| } | ||||
|  | ||||
| AVFilter avsink = { | ||||
|     .name      = "avsink", | ||||
|     .priv_size = sizeof(AVSinkContext), | ||||
|     .init      = avsink_init, | ||||
| AVFilter sink = { | ||||
|     .name      = "sink", | ||||
|     .priv_size = sizeof(SinkContext), | ||||
|     .init      = sink_init, | ||||
|  | ||||
|     .query_formats = avsink_query_formats, | ||||
|     .query_formats = sink_query_formats, | ||||
|  | ||||
|     .inputs    = (AVFilterPad[]) {{ .name          = "default", | ||||
|                                     .type          = AVMEDIA_TYPE_VIDEO, | ||||
|   | ||||
| @@ -363,9 +363,9 @@ FILE *get_preset_file(char *filename, size_t filename_size, | ||||
|  | ||||
| typedef struct { | ||||
|     enum PixelFormat pix_fmt; | ||||
| } AVSinkContext; | ||||
| } SinkContext; | ||||
|  | ||||
| extern AVFilter avsink; | ||||
| extern AVFilter sink; | ||||
|  | ||||
| /** | ||||
|  * Extract a frame from sink. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user