Skip to content
Permalink
Browse files

H264Parser: Fix Coverity ID 700913 Uninitialized scalar field

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
Paul Harrison committed Jun 15, 2013
1 parent c42ccab commit 77645970804c2279c9179f86e3490cf6106426f8
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/mpeg/H264Parser.cpp
@@ -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();

0 comments on commit 7764597

Please sign in to comment.
You can’t perform that action at this time.