Skip to content

Commit

Permalink
Increase the allowed AIS version in the Message 5 parser to allow dec…
Browse files Browse the repository at this point in the history
…oding of AIS v2 messages as per ITU-R M.1371-5 as it should not cause any problems
  • Loading branch information
nohal committed Jul 20, 2016
1 parent bca7391 commit 265b06e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/glTextureManager.h
Expand Up @@ -27,6 +27,10 @@
#ifndef __GLTEXTUREMANAGER_H__
#define __GLTEXTUREMANAGER_H__

#ifndef PFNGLGETCOMPRESSEDTEXIMAGEPROC
#include "GL/gl_private.h"
#endif

const wxEventType wxEVT_OCPN_COMPRESSIONTHREAD = wxNewEventType();

class JobTicket;
Expand Down
2 changes: 1 addition & 1 deletion src/AIS_Decoder.cpp
Expand Up @@ -1446,7 +1446,7 @@ bool AIS_Decoder::Parse_VDXBitstring( AIS_Bitstring *bstr, AIS_Target_Data *ptd
// 1 = station compliant with Recommendation ITU-R M.1371-3
// 2-3 = station compliant with future editions
int AIS_version_indicator = bstr->GetInt( 39, 2 );
if( AIS_version_indicator < 2 ) {
if( AIS_version_indicator < 4 ) {
ptd->IMO = bstr->GetInt( 41, 30 );

bstr->GetStr( 71, 42, &ptd->CallSign[0], 7 );
Expand Down

0 comments on commit 265b06e

Please sign in to comment.