From ccc58f40eaf2884d099705d99d4970b4a06e246f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 18 Aug 2011 18:45:22 +0200 Subject: [PATCH] Fix invalid boost::format string & wrong FourCC output --- src/input/r_mpeg_ts.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input/r_mpeg_ts.cpp b/src/input/r_mpeg_ts.cpp index f6bb79ab4..ce93daa29 100644 --- a/src/input/r_mpeg_ts.cpp +++ b/src/input/r_mpeg_ts.cpp @@ -463,7 +463,8 @@ mpeg_ts_reader_c::parse_pmt(unsigned char *pmt) { track->data_ready = false; tracks.push_back(track); es_to_process++; - mxverb(3, boost::format("mpeg_ts:parse_pmt: PID %1% has type: 0x%|2$08x|%\n") % track->pid % get_uint32_be(&track->fourcc)); + uint32_t fourcc = get_uint32_be(&track->fourcc); + mxverb(3, boost::format("mpeg_ts:parse_pmt: PID %1% has type: 0x%|2$08x| (%3%)\n") % track->pid % fourcc % std::string(reinterpret_cast(&fourcc), 4)); } }