[mythtv] [PATCH] Restore ability to play MPEG-TS streams
Tako Schotanus
quintesse at palacio-cristal.com
Thu Nov 13 05:07:16 EST 2003
Just as an aside: can somebody explain to me what the different playback
types are for? I have a PVR-250 and the setting I use works but when I
see the other list of options I just wonder what they're for :-)
Cheers,
-Tako
Doug Larrick wrote:
> As predicted, the recent ffmpeg merge broke something -- namely,
> playback of MPEG-TS streams (as recorded by pcHDTV). The attached
> patch fixes it.
>
> -Do
> ug
>
>------------------------------------------------------------------------
>
>Index: avformatdecoder.cpp
>===================================================================
>RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/avformatdecoder.cpp,v
>retrieving revision 1.63
>diff -u -r1.63 avformatdecoder.cpp
>--- avformatdecoder.cpp 12 Nov 2003 06:13:41 -0000 1.63
>+++ avformatdecoder.cpp 13 Nov 2003 02:30:11 -0000
>@@ -51,6 +51,8 @@
>
> lastKey = 0;
>
>+ memset(¶ms, 0, sizeof(AVFormatParameters));
>+
> memset(prvpkt, 0, 3);
> }
>
>@@ -340,7 +342,7 @@
> setLowBuffers();
> m_parent->ForceVideoOutputType(kVideoOutput_XvMC);
> }
>- else if (codec && codec->id == CODEC_ID_MPEG2VIDEO_VIA)
>+ else if (codec && codec->id == CODEC_ID_MPEG2VIDEO_VIA)
> {
> enc->flags |= CODEC_FLAG_EMU_EDGE;
> enc->get_buffer = get_avf_buffer_via;
>@@ -376,6 +378,13 @@
> audio_channels = enc->channels;
> break;
> }
>+ case CODEC_TYPE_DATA:
>+ {
>+ bitrate += enc->bit_rate;
>+ // Otherwise ignore it
>+ continue;
>+ break;
>+ }
> default:
> {
> cerr << "Unknown codec type: " << enc->codec_type << endl;
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>mythtv-dev mailing list
>mythtv-dev at mythtv.org
>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20031113/4aab3918/attachment.htm
More information about the mythtv-dev
mailing list