[vlc-devel] [PATCH 2/2] demux: mkv: spelling fixes and code cleanup

Filip Roséen filip at atch.se
Wed Apr 12 12:10:40 CEST 2017


Hi Shaleen,

On 2017-04-12 14:44, Shaleen Jain wrote:

> ---
>  modules/demux/mkv/matroska_segment.cpp | 2 +-
>  modules/demux/mkv/mkv.cpp              | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
> index 415f77f489..b6c0dcfebf 100644
> --- a/modules/demux/mkv/matroska_segment.cpp
> +++ b/modules/demux/mkv/matroska_segment.cpp
> @@ -1101,7 +1101,7 @@ bool matroska_segment_c::ESCreate()
>          /* Turn on a subtitles track if it has been flagged as default -
>           * but only do this if no subtitles track has already been engaged,
>           * either by an earlier 'default track' (??) or by default
> -         * language choice behaviour.
> +         * language choice behavior.

As far as I know, there is nothing stating that only *American
English* is to be used in the codebase, as such; *"behaviour"* is
strictly speaking not a typo (it is simply the *British English*
spelling).

>           */
>          if( track.b_default || track.b_forced )
>          {
> diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
> index d7d969aecb..10892bc182 100644
> --- a/modules/demux/mkv/mkv.cpp
> +++ b/modules/demux/mkv/mkv.cpp
> @@ -580,7 +580,7 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
>  
>          if( track.i_compression_type == MATROSKA_COMPRESSION_HEADER &&
>              track.p_compression_data != NULL &&
> -            track.i_encoding_scope & MATROSKA_ENCODING_SCOPE_ALL_FRAMES )
> +            (track.i_encoding_scope & MATROSKA_ENCODING_SCOPE_ALL_FRAMES) )
>              p_block = MemToBlock( data->Buffer(), data->Size(), track.p_compression_data->GetSize() );
>          else if( unlikely( track.fmt.i_codec == VLC_CODEC_WAVPACK ) )
>              p_block = packetize_wavpack( &track, data->Buffer(), data->Size() );
> @@ -603,7 +603,7 @@ void BlockDecode( demux_t *p_demux, KaxBlock *block, KaxSimpleBlock *simpleblock
>          else
>  #endif
>          if( track.i_compression_type == MATROSKA_COMPRESSION_HEADER &&
> -            track.i_encoding_scope & MATROSKA_ENCODING_SCOPE_ALL_FRAMES )
> +        	(track.i_encoding_scope & MATROSKA_ENCODING_SCOPE_ALL_FRAMES) )

Please do not introduce raw tabs (`"\t"`) as part of indentation (or
anything else for that matter), in the codebase.

>          {
>              memcpy( p_block->p_buffer, track.p_compression_data->GetBuffer(), track.p_compression_data->GetSize() );
>          }

Best Regards,\
Filip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170412/e0e15a50/attachment.html>


More information about the vlc-devel mailing list