Skip to content

Commit

Permalink
weak linking was removed in 5b15e27. No need to test for the function…
Browse files Browse the repository at this point in the history
…s anymore
  • Loading branch information
jyavenard committed Feb 28, 2011
1 parent cc47895 commit 7350aa5
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions mythtv/libs/libmyth/spdifencoder.cpp
Expand Up @@ -24,30 +24,10 @@ SPDIFEncoder::SPDIFEncoder(QString muxer, int codec_id)
QByteArray dev_ba = muxer.toAscii();
AVOutputFormat *fmt;

if (!(av_register_all && av_guess_format && avformat_alloc_context &&
av_new_stream && av_write_header && av_write_frame &&
av_write_trailer && av_set_parameters))
{
VERBOSE(VB_IMPORTANT, LOC_ERR + "Couldn't find libavformat");
return;
}

if (!avcodec_close)
{
VERBOSE(VB_IMPORTANT, LOC_ERR + "Couldn't find libavcodec");
return;
}

if (!(av_freep && av_alloc_put_byte))
{
VERBOSE(VB_IMPORTANT, LOC_ERR + "Couldn't find libavutil");
return;
}

avcodeclock->lock();
av_register_all();
avcodeclock->unlock();

fmt = av_guess_format(dev_ba.constData(), NULL, NULL);
if (!fmt)
{
Expand Down

0 comments on commit 7350aa5

Please sign in to comment.