Skip to content

Commit

Permalink
H264Parser: Fix Coverity ID 700913 Uninitialized scalar field
Browse files Browse the repository at this point in the history
In H264Parser::H264Parser(): Make sure pkt_offset is initialized in Reset() which
is called by the constructor to initialize the parser.
  • Loading branch information
Paul Harrison committed Jun 15, 2013
1 parent c42ccab commit 7764597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mpeg/H264Parser.cpp
Expand Up @@ -148,7 +148,7 @@ void H264Parser::Reset(void)
timeScale = 0;
fixedRate = 0;

AU_offset = frame_start_offset = keyframe_start_offset = 0;
pkt_offset = AU_offset = frame_start_offset = keyframe_start_offset = 0;
on_frame = on_key_frame = false;

resetRBSP();
Expand Down

0 comments on commit 7764597

Please sign in to comment.