@@ -161,7 +161,7 @@ static inline char *upcase_string(char *dst, size_t dst_size, const char *src)
161161{
162162 unsigned i ;
163163 for (i = 0 ; src [i ] && i < dst_size - 1 ; i ++ )
164- dst [i ] = ( char ) av_toupper (src [i ]);
164+ dst [i ] = av_toupper (src [i ]);
165165 dst [i ] = 0 ;
166166 return dst ;
167167}
@@ -261,7 +261,7 @@ static void print_link(GraphPrintContext *gpc, AVFilterLink *link)
261261 case AVMEDIA_TYPE_VIDEO :
262262
263263 if (hw_frames_ctx && hw_frames_ctx -> data ) {
264- AVHWFramesContext * hwfctx = ( AVHWFramesContext * ) hw_frames_ctx -> data ;
264+ AVHWFramesContext * hwfctx = hw_frames_ctx -> data ;
265265 const AVPixFmtDescriptor * pix_desc_hw = av_pix_fmt_desc_get (hwfctx -> format );
266266 const AVPixFmtDescriptor * pix_desc_sw = av_pix_fmt_desc_get (hwfctx -> sw_format );
267267 if (pix_desc_hw && pix_desc_sw )
@@ -317,7 +317,7 @@ static void print_link(GraphPrintContext *gpc, AVFilterLink *link)
317317 print_fmt_opt ("sample_rate" , "%d/%d" , link -> time_base .num , link -> time_base .den );
318318
319319 if (hw_frames_ctx && hw_frames_ctx -> data )
320- print_hwframescontext (gpc , ( AVHWFramesContext * ) hw_frames_ctx -> data );
320+ print_hwframescontext (gpc , hw_frames_ctx -> data );
321321 av_buffer_unref (& hw_frames_ctx );
322322}
323323
@@ -397,7 +397,7 @@ static void print_filter(GraphPrintContext *gpc, const AVFilterContext *filter,
397397 }
398398
399399 if (filter -> hw_device_ctx ) {
400- AVHWDeviceContext * device_context = ( AVHWDeviceContext * ) filter -> hw_device_ctx -> data ;
400+ AVHWDeviceContext * device_context = filter -> hw_device_ctx -> data ;
401401 print_hwdevicecontext (gpc , device_context );
402402 if (filter -> extra_hw_frames > 0 )
403403 print_int ("extra_hw_frames" , filter -> extra_hw_frames );
@@ -498,17 +498,17 @@ static void print_filtergraph_single(GraphPrintContext *gpc, FilterGraph *fg, AV
498498 print_int ("input_index" , ifilter -> index );
499499
500500 if (ifilter -> linklabel )
501- print_str ("link_label" , ( const char * ) ifilter -> linklabel );
501+ print_str ("link_label" , ifilter -> linklabel );
502502
503503 if (ifilter -> filter ) {
504504 print_id ("filter_id" , ifilter -> filter -> name );
505505 print_str ("filter_name" , ifilter -> filter -> filter -> name );
506506 }
507507
508508 if (ifilter -> linklabel && ifilter -> filter )
509- av_dict_set (& input_map , ifilter -> filter -> name , ( const char * ) ifilter -> linklabel , 0 );
509+ av_dict_set (& input_map , ifilter -> filter -> name , ifilter -> linklabel , 0 );
510510 else if (ifilter -> input_name && ifilter -> filter )
511- av_dict_set (& input_map , ifilter -> filter -> name , ( const char * ) ifilter -> input_name , 0 );
511+ av_dict_set (& input_map , ifilter -> filter -> name , ifilter -> input_name , 0 );
512512
513513 print_str ("media_type" , av_get_media_type_string (media_type ));
514514
@@ -529,7 +529,7 @@ static void print_filtergraph_single(GraphPrintContext *gpc, FilterGraph *fg, AV
529529 print_str ("name" , ofilter -> output_name );
530530
531531 if (fg -> outputs [i ]-> linklabel )
532- print_str ("link_label" , ( const char * ) fg -> outputs [i ]-> linklabel );
532+ print_str ("link_label" , fg -> outputs [i ]-> linklabel );
533533
534534 if (ofilter -> filter ) {
535535 print_id ("filter_id" , ofilter -> filter -> name );
@@ -752,7 +752,7 @@ static int print_streams(GraphPrintContext *gpc, InputFile **ifiles, int nb_ifil
752752
753753 for (int n = nb_ofiles - 1 ; n >= 0 ; n -- ) {
754754 OutputFile * of = ofiles [n ];
755- Muxer * muxer = ( Muxer * ) of ;
755+ Muxer * muxer = of ;
756756
757757 if (!muxer -> fc )
758758 continue ;
@@ -1069,7 +1069,7 @@ static int print_filtergraphs_priv(FilterGraph **graphs, int nb_graphs, InputFil
10691069 goto cleanup ;
10701070 }
10711071
1072- avio_write (avio , ( const unsigned char * ) target_buf .str , FFMIN (target_buf .len , target_buf .size - 1 ));
1072+ avio_write (avio , target_buf .str , FFMIN (target_buf .len , target_buf .size - 1 ));
10731073
10741074 if ((ret = avio_closep (& avio )) < 0 )
10751075 av_log (NULL , AV_LOG_ERROR , "Error closing graph output file, loss of information possible: %s\n" , av_err2str (ret ));
0 commit comments