[mythtv] mythmusic svn not compiling on FC4-x86_64, patch in message.

Michael Webster andy.webster at gmail.com
Wed Nov 30 12:31:59 EST 2005


I couldn't get mythmusic svn to compile.
I'm using FC4_x86_64, with a Sempron 64bit processor
and here are the changes that made it compile.

Not sure if audio_dec should be copied by value, or what was being attempted
there.
This was just to make it work.

------------- START PATCH -----------------
--- mythmusic-svn/mythmusic/avfdecoder.cpp      2005-10-27 10:10:
56.000000000 -0400
+++ mythmusic/mythmusic/avfdecoder.cpp  2005-11-29 23:32:14.000000000 -0500
@@ -146,7 +146,7 @@
         return FALSE;

     // Store the audio codec of the stream
-    audio_dec = ic->streams[0]->codec;
+    *audio_dec = ic->streams[0]->codec;

     // Store the input format of the context
     ifmt = ic->iformat;
@@ -165,11 +165,11 @@
     oc->oformat = fmt;

     dec_st = av_new_stream(oc,0);
-    dec_st->codec->codec_type = CODEC_TYPE_AUDIO;
-    dec_st->codec->codec_id = oc->oformat->audio_codec;
-    dec_st->codec->sample_rate = audio_dec->sample_rate;
-    dec_st->codec->channels = audio_dec->channels;
-    dec_st->codec->bit_rate = audio_dec->bit_rate;
+    dec_st->codec.codec_type = CODEC_TYPE_AUDIO;
+    dec_st->codec.codec_id = oc->oformat->audio_codec;
+    dec_st->codec.sample_rate = audio_dec->sample_rate;
+    dec_st->codec.channels = audio_dec->channels;
+    dec_st->codec.bit_rate = audio_dec->bit_rate;
     av_set_parameters(oc, NULL);

     // Prepare the decoding codec
-------------- END PATCH ------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20051130/39c101a3/attachment.htm


More information about the mythtv-dev mailing list