[vlc-devel] [PATCH 33/34] mkv: whitespace cleaning + correcting header includes
Filip Roséen
filip at videolabs.io
Fri May 6 19:09:12 CEST 2016
---
modules/demux/mkv/matroska_segment.cpp | 1 -
modules/demux/mkv/matroska_segment_parse.cpp | 1 +
modules/demux/mkv/matroska_segment_seeker.cpp | 1 +
modules/demux/mkv/matroska_segment_seeker.hpp | 3 ++-
modules/demux/mkv/mkv.cpp | 4 +++-
5 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index af5e483..7dcdf33 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -1195,7 +1195,6 @@ int matroska_segment_c::BlockGet( KaxBlock * & pp_block, KaxSimpleBlock * & pp_s
vars.i_duration -= i_duration;
}
#endif
-
E_CASE_DEFAULT( element )
{
VLC_UNUSED(element);
diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 5727633..2571670 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -604,6 +604,7 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
vars.tk->i_original_rate = value;
vars.tk->fmt.audio.i_rate = value;
+
debug( vars, "afreq=%d", vars.tk->fmt.audio.i_rate ) ;
}
E_CASE( KaxAudioOutputSamplingFreq, afreq )
diff --git a/modules/demux/mkv/matroska_segment_seeker.cpp b/modules/demux/mkv/matroska_segment_seeker.cpp
index 6ca2a9d..dde1eb5 100644
--- a/modules/demux/mkv/matroska_segment_seeker.cpp
+++ b/modules/demux/mkv/matroska_segment_seeker.cpp
@@ -7,6 +7,7 @@
#include "stream_io_callback.hpp"
#include <sstream>
+#include <limits>
namespace {
template<class It, class T>
diff --git a/modules/demux/mkv/matroska_segment_seeker.hpp b/modules/demux/mkv/matroska_segment_seeker.hpp
index d90771a..9e60155 100644
--- a/modules/demux/mkv/matroska_segment_seeker.hpp
+++ b/modules/demux/mkv/matroska_segment_seeker.hpp
@@ -3,10 +3,11 @@
#include "mkv.hpp"
-#include <cstdint>
+#include <vlc_fixups.h>
#include <algorithm>
#include <vector>
#include <map>
+#include <limits>
class matroska_segment_c;
diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index d85f809..76c8983 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -550,9 +550,10 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
block_size = simpleblock->GetSize();
else
block_size = block->GetSize();
-
+
const unsigned int i_number_frames = block != NULL ? block->NumberFrames() :
( simpleblock != NULL ? simpleblock->NumberFrames() : 0 );
+
for( unsigned int i_frame = 0; i_frame < i_number_frames; i_frame++ )
{
block_t *p_block;
@@ -715,6 +716,7 @@ static int Demux( demux_t *p_demux)
int64_t i_block_duration = 0;
bool b_key_picture;
bool b_discardable_picture;
+
if( p_segment->BlockGet( block, simpleblock, &b_key_picture, &b_discardable_picture, &i_block_duration ) )
{
if ( p_vsegment->CurrentEdition() && p_vsegment->CurrentEdition()->b_ordered )
--
2.8.2
More information about the vlc-devel
mailing list