Skip to content

Commit 33614ae

Browse files
committed
fftools: Fix linking with libbluray.
1 parent cc46081 commit 33614ae

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

fftools/ffmpeg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ int dec_create(const OptionsContext *o, const char *arg, Scheduler *sch);
749749
* @retval ">=0" non-negative scheduler index on success
750750
* @retval "<0" an error code on failure
751751
*/
752-
int dec_init(Decoder **pdec, Scheduler *sch,
752+
int dec_open(Decoder **pdec, Scheduler *sch,
753753
AVDictionary **dec_opts, const DecoderOpts *o,
754754
AVFrame *param_out);
755755
void dec_free(Decoder **pdec);

fftools/ffmpeg_dec.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

771771
static 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

806806
static 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

fftools/ffmpeg_demux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ static int ist_use(InputStream *ist, int decoding_needed)
943943
if (!ds->decoded_params)
944944
return AVERROR(ENOMEM);
945945

946-
ret = dec_init(&ist->decoder, d->sch,
946+
ret = dec_open(&ist->decoder, d->sch,
947947
&ds->decoder_opts, &ds->dec_opts, ds->decoded_params);
948948
if (ret < 0)
949949
return ret;

0 commit comments

Comments
 (0)