Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2012-05-27 13:08:33 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2012-05-27 13:08:33 +0400
commitf829a8f5b1237ea931aa4eb1965110084a990149 (patch)
treef46ac1ecf4fb8983eecf768ef2e580154fc21c6e /src/filters/parser/BaseSplitter
parenta12d0819f8acd45a99431577831a3aa5f81284b2 (diff)
use a space after if, for, while
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4907 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/BaseSplitter')
-rw-r--r--src/filters/parser/BaseSplitter/BaseSplitter.cpp2
-rw-r--r--src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp38
2 files changed, 20 insertions, 20 deletions
diff --git a/src/filters/parser/BaseSplitter/BaseSplitter.cpp b/src/filters/parser/BaseSplitter/BaseSplitter.cpp
index 433b6e9c7..9796727c3 100644
--- a/src/filters/parser/BaseSplitter/BaseSplitter.cpp
+++ b/src/filters/parser/BaseSplitter/BaseSplitter.cpp
@@ -1087,7 +1087,7 @@ bool CBaseSplitterFilter::IsAnyPinDrying()
int count = pPin->QueueCount();
int size = pPin->QueueSize();
if (!pPin->IsDiscontinuous() && (count < MINPACKETS || size < MINPACKETSIZE)) {
- // if(m_priority != THREAD_PRIORITY_ABOVE_NORMAL && (count < MINPACKETS/3 || size < MINPACKETSIZE/3))
+ // if (m_priority != THREAD_PRIORITY_ABOVE_NORMAL && (count < MINPACKETS/3 || size < MINPACKETSIZE/3))
if (m_priority != THREAD_PRIORITY_BELOW_NORMAL && (count < MINPACKETS/3 || size < MINPACKETSIZE/3)) {
// SetThreadPriority(m_hThread, m_priority = THREAD_PRIORITY_ABOVE_NORMAL);
POSITION pos = m_pOutputs.GetHeadPosition();
diff --git a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp
index e79f950aa..ed7d4c7f9 100644
--- a/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp
+++ b/src/filters/parser/BaseSplitter/BaseSplitterFileEx.cpp
@@ -63,7 +63,7 @@ bool CBaseSplitterFileEx::NextMpegStartCode(BYTE& code, __int64 len)
//
-#define MARKER if(BitRead(1) != 1) {ASSERT(0); return false;}
+#define MARKER if (BitRead(1) != 1) {ASSERT(0); return false;}
bool CBaseSplitterFileEx::Read(pshdr& h)
{
@@ -1357,7 +1357,7 @@ bool CBaseSplitterFileEx::Read(pvahdr& h, bool fSync)
if (!Read(h2, b)) {
return false;
}
- // Maybe bug, code before: if(h.fpts = h2.fpts) h.pts = h2.pts;
+ // Maybe bug, code before: if (h.fpts = h2.fpts) h.pts = h2.pts;
h.fpts = h2.fpts;
if (h.fpts) {
h.pts = h2.pts;
@@ -1805,60 +1805,60 @@ bool CBaseSplitterFileEx::Read(avchdr& h, spsppsindex index)
h.views = (unsigned int) gb.UExpGolombRead()+1;
/*
- for(unsigned int i = 0; i < h.views; i++) {
+ for (unsigned int i = 0; i < h.views; i++) {
gb.UExpGolombRead(); // view_id
}
- for(unsigned int i = 1; i < h.views; i++) {
- for(int j = 0; j < gb.UExpGolombRead(); j++) { // num_anchor_refs_l0
+ for (unsigned int i = 1; i < h.views; i++) {
+ for (int j = 0; j < gb.UExpGolombRead(); j++) { // num_anchor_refs_l0
gb.UExpGolombRead(); // anchor_refs_l0
}
- for(int j = 0; j < gb.UExpGolombRead(); j++) { // num_anchor_refs_l1
+ for (int j = 0; j < gb.UExpGolombRead(); j++) { // num_anchor_refs_l1
gb.UExpGolombRead(); // anchor_refs_l1
}
}
- for(unsigned int i = 1; i < h.views; i++) {
- for(int j = 0; j < gb.UExpGolombRead(); j++) { // num_non_anchor_refs_l0
+ for (unsigned int i = 1; i < h.views; i++) {
+ for (int j = 0; j < gb.UExpGolombRead(); j++) { // num_non_anchor_refs_l0
gb.UExpGolombRead(); // non_anchor_refs_l0
}
- for(int j = 0; j < gb.UExpGolombRead(); j++) { // num_non_anchor_refs_l1
+ for (int j = 0; j < gb.UExpGolombRead(); j++) { // num_non_anchor_refs_l1
gb.UExpGolombRead(); // non_anchor_refs_l1
}
}
- for(unsigned int i = 0; i <= gb.UExpGolombRead(); i++) { // num_level_values_signalled_minus1
+ for (unsigned int i = 0; i <= gb.UExpGolombRead(); i++) { // num_level_values_signalled_minus1
gb.BitRead(8); // level_idc
- for(int j = 0; j <= gb.UExpGolombRead(); j++) { // num_applicable_ops_minus1
+ for (int j = 0; j <= gb.UExpGolombRead(); j++) { // num_applicable_ops_minus1
gb.BitRead(3); // applicable_op_temporal_id
- for(int k = 0; k <= gb.UExpGolombRead(); k++) { // applicable_op_num_target_views_minus1
+ for (int k = 0; k <= gb.UExpGolombRead(); k++) { // applicable_op_num_target_views_minus1
gb.UExpGolombRead(); // applicable_op_traget_view_id
}
gb.UExpGolombRead(); // applicable_op_num_views_minus1
}
}
- if(gb.BitRead(1)) { // mvc_vui_parameters_present_flag
+ if (gb.BitRead(1)) { // mvc_vui_parameters_present_flag
// mvc_vui_parameters_extension
- for(unsigned int i = 0; i <= gb.UExpGolombRead(); i++) { // vui_mvc_num_ops_minus1
+ for (unsigned int i = 0; i <= gb.UExpGolombRead(); i++) { // vui_mvc_num_ops_minus1
gb.BitRead(3);
- for(unsigned int j = 0; j <= gb.UExpGolombRead(); j++) { // vui_mvc_num_target_output_views_minus1
+ for (unsigned int j = 0; j <= gb.UExpGolombRead(); j++) { // vui_mvc_num_target_output_views_minus1
gb.UExpGolombRead(); // vui_mvc_view_id
}
- if(gb.BitRead(1)) { // vui_mvc_timing_info_present_flag
+ if (gb.BitRead(1)) { // vui_mvc_timing_info_present_flag
gb.BitRead(32); // vui_mvc_num_units_in_tick
gb.BitRead(32); // vui_mvc_time_scale
gb.BitRead(1); // vui_mvc_fixed_frame_rate_flag
}
bool nalflag = gb.BitRead(1); // vui_mvc_nal_hrd_parameters_present_flag
- if(nalflag) {
+ if (nalflag) {
HrdParameters(gb);
}
bool vclflag = gb.BitRead(1); // vui_mvc_vcl_hrd_parameters_present_flag
- if(vclflag) {
+ if (vclflag) {
HrdParameters(gb);
}
- if(nalflag || vclflag) {
+ if (nalflag || vclflag) {
gb.BitRead(1); // vui_mvc_low_delay_hrd_flag
}
gb.BitRead(1); // vui_mvc_pic_struct_present_flag