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 ------------------
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to