Skip to content

Commit

Permalink
fftools: Fix linking with libbluray.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibras committed Oct 26, 2024
1 parent cc46081 commit 33614ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fftools/ffmpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ int dec_create(const OptionsContext *o, const char *arg, Scheduler *sch);
* @retval ">=0" non-negative scheduler index on success
* @retval "<0" an error code on failure
*/
int dec_init(Decoder **pdec, Scheduler *sch,
int dec_open(Decoder **pdec, Scheduler *sch,
AVDictionary **dec_opts, const DecoderOpts *o,
AVFrame *param_out);
void dec_free(Decoder **pdec);
Expand Down
10 changes: 5 additions & 5 deletions fftools/ffmpeg_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ static int packet_decode(DecoderPriv *dp, AVPacket *pkt, AVFrame *frame)
}
}

static int dec_open(DecoderPriv *dp, AVDictionary **dec_opts,
static int dec_open2(DecoderPriv *dp, AVDictionary **dec_opts,
const DecoderOpts *o, AVFrame *param_out);

static int dec_standalone_open(DecoderPriv *dp, const AVPacket *pkt)
Expand Down Expand Up @@ -800,7 +800,7 @@ static int dec_standalone_open(DecoderPriv *dp, const AVPacket *pkt)
snprintf(name, sizeof(name), "dec%d", dp->index);
o.name = name;

return dec_open(dp, &dp->standalone_init.opts, &o, NULL);
return dec_open2(dp, &dp->standalone_init.opts, &o, NULL);
}

static void dec_thread_set_name(const DecoderPriv *dp)
Expand Down Expand Up @@ -1138,7 +1138,7 @@ static int hw_device_setup_for_decode(DecoderPriv *dp,
return 0;
}

static int dec_open(DecoderPriv *dp, AVDictionary **dec_opts,
static int dec_open2(DecoderPriv *dp, AVDictionary **dec_opts,
const DecoderOpts *o, AVFrame *param_out)
{
const AVCodec *codec = o->codec;
Expand Down Expand Up @@ -1250,7 +1250,7 @@ static int dec_open(DecoderPriv *dp, AVDictionary **dec_opts,
return 0;
}

int dec_init(Decoder **pdec, Scheduler *sch,
int dec_open(Decoder **pdec, Scheduler *sch,
AVDictionary **dec_opts, const DecoderOpts *o,
AVFrame *param_out)
{
Expand All @@ -1263,7 +1263,7 @@ int dec_init(Decoder **pdec, Scheduler *sch,
if (ret < 0)
return ret;

ret = dec_open(dp, dec_opts, o, param_out);
ret = dec_open2(dp, dec_opts, o, param_out);
if (ret < 0)
goto fail;

Expand Down
2 changes: 1 addition & 1 deletion fftools/ffmpeg_demux.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ static int ist_use(InputStream *ist, int decoding_needed)
if (!ds->decoded_params)
return AVERROR(ENOMEM);

ret = dec_init(&ist->decoder, d->sch,
ret = dec_open(&ist->decoder, d->sch,
&ds->decoder_opts, &ds->dec_opts, ds->decoded_params);
if (ret < 0)
return ret;
Expand Down

0 comments on commit 33614ae

Please sign in to comment.