diff options
author | phintuka <phintuka> | 2008-01-24 09:31:05 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-01-24 09:31:05 +0000 |
commit | 5649d38379576ea5b0bf53ce0adf5f1b35b713b8 (patch) | |
tree | eefa8dc84db34770499e8448ac7093ed0f129bfc | |
parent | fa19e1e74b19c800e42e7969295fd14b0f4cb7d6 (diff) | |
download | xineliboutput-5649d38379576ea5b0bf53ce0adf5f1b35b713b8.tar.gz xineliboutput-5649d38379576ea5b0bf53ce0adf5f1b35b713b8.tar.bz2 |
Use larger buffers for H.264
-rw-r--r-- | device.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: device.c,v 1.48 2008-01-10 23:36:06 phelin Exp $ + * $Id: device.c,v 1.49 2008-01-24 09:31:05 phintuka Exp $ * */ @@ -1144,6 +1144,13 @@ int cXinelibDevice::PlayVideo(const uchar *buf, int length) } #endif + if(IsFrameH264(buf, length)) { + LOGMSG("cXinelibDevice::PlayVideo: Detected H.264 video"); +//#warning There are SDTV channels using H.264, so we should really check video size ... + ForEach(m_clients, &cXinelibThread::SetHDMode, true); + m_StreamStart = false; + } + int Width, Height; if(GetVideoSize(buf, length, &Width, &Height)) { m_StreamStart = false; |