63
63
64
64
static int init_report (const char * env );
65
65
66
- struct SwsContext * sws_opts ;
67
66
AVDictionary * sws_dict ;
68
67
AVDictionary * swr_opts ;
69
68
AVDictionary * format_opts , * codec_opts , * resample_opts ;
@@ -74,20 +73,11 @@ int hide_banner = 0;
74
73
75
74
void init_opts (void )
76
75
{
77
-
78
- if (CONFIG_SWSCALE )
79
- sws_opts = sws_getContext (16 , 16 , 0 , 16 , 16 , 0 , SWS_BICUBIC ,
80
- NULL , NULL , NULL );
81
76
av_dict_set (& sws_dict , "flags" , "bicubic" , 0 );
82
77
}
83
78
84
79
void uninit_opts (void )
85
80
{
86
- #if CONFIG_SWSCALE
87
- sws_freeContext (sws_opts );
88
- sws_opts = NULL ;
89
- #endif
90
-
91
81
av_dict_free (& swr_opts );
92
82
av_dict_free (& sws_dict );
93
83
av_dict_free (& format_opts );
@@ -577,11 +567,6 @@ int opt_default(void *optctx, const char *opt, const char *arg)
577
567
av_log (NULL , AV_LOG_ERROR , "Error setting option %s.\n" , opt );
578
568
return ret ;
579
569
}
580
- ret = av_opt_set (sws_opts , opt , arg , 0 );
581
- if (ret < 0 ) {
582
- av_log (NULL , AV_LOG_ERROR , "Error setting option %s for sws_opts.\n" , opt );
583
- return ret ;
584
- }
585
570
586
571
av_dict_set (& sws_dict , opt , arg , FLAGS );
587
572
@@ -658,9 +643,6 @@ static void finish_group(OptionParseContext *octx, int group_idx,
658
643
* g = octx -> cur_group ;
659
644
g -> arg = arg ;
660
645
g -> group_def = l -> group_def ;
661
- #if CONFIG_SWSCALE
662
- g -> sws_opts = sws_opts ;
663
- #endif
664
646
g -> sws_dict = sws_dict ;
665
647
g -> swr_opts = swr_opts ;
666
648
g -> codec_opts = codec_opts ;
@@ -670,9 +652,6 @@ static void finish_group(OptionParseContext *octx, int group_idx,
670
652
codec_opts = NULL ;
671
653
format_opts = NULL ;
672
654
resample_opts = NULL ;
673
- #if CONFIG_SWSCALE
674
- sws_opts = NULL ;
675
- #endif
676
655
sws_dict = NULL ;
677
656
swr_opts = NULL ;
678
657
init_opts ();
@@ -729,9 +708,6 @@ void uninit_parse_context(OptionParseContext *octx)
729
708
av_dict_free (& l -> groups [j ].codec_opts );
730
709
av_dict_free (& l -> groups [j ].format_opts );
731
710
av_dict_free (& l -> groups [j ].resample_opts );
732
- #if CONFIG_SWSCALE
733
- sws_freeContext (l -> groups [j ].sws_opts );
734
- #endif
735
711
736
712
av_dict_free (& l -> groups [j ].sws_dict );
737
713
av_dict_free (& l -> groups [j ].swr_opts );
0 commit comments