@@ -765,7 +765,7 @@ static int packet_decode(DecoderPriv *dp, AVPacket *pkt, AVFrame *frame)
765765 }
766766}
767767
768- static int dec_open (DecoderPriv * dp , AVDictionary * * dec_opts ,
768+ static int dec_open2 (DecoderPriv * dp , AVDictionary * * dec_opts ,
769769 const DecoderOpts * o , AVFrame * param_out );
770770
771771static int dec_standalone_open (DecoderPriv * dp , const AVPacket * pkt )
@@ -800,7 +800,7 @@ static int dec_standalone_open(DecoderPriv *dp, const AVPacket *pkt)
800800 snprintf (name , sizeof (name ), "dec%d" , dp -> index );
801801 o .name = name ;
802802
803- return dec_open (dp , & dp -> standalone_init .opts , & o , NULL );
803+ return dec_open2 (dp , & dp -> standalone_init .opts , & o , NULL );
804804}
805805
806806static void dec_thread_set_name (const DecoderPriv * dp )
@@ -1138,7 +1138,7 @@ static int hw_device_setup_for_decode(DecoderPriv *dp,
11381138 return 0 ;
11391139}
11401140
1141- static int dec_open (DecoderPriv * dp , AVDictionary * * dec_opts ,
1141+ static int dec_open2 (DecoderPriv * dp , AVDictionary * * dec_opts ,
11421142 const DecoderOpts * o , AVFrame * param_out )
11431143{
11441144 const AVCodec * codec = o -> codec ;
@@ -1250,7 +1250,7 @@ static int dec_open(DecoderPriv *dp, AVDictionary **dec_opts,
12501250 return 0 ;
12511251}
12521252
1253- int dec_init (Decoder * * pdec , Scheduler * sch ,
1253+ int dec_open (Decoder * * pdec , Scheduler * sch ,
12541254 AVDictionary * * dec_opts , const DecoderOpts * o ,
12551255 AVFrame * param_out )
12561256{
@@ -1263,7 +1263,7 @@ int dec_init(Decoder **pdec, Scheduler *sch,
12631263 if (ret < 0 )
12641264 return ret ;
12651265
1266- ret = dec_open (dp , dec_opts , o , param_out );
1266+ ret = dec_open2 (dp , dec_opts , o , param_out );
12671267 if (ret < 0 )
12681268 goto fail ;
12691269
0 commit comments