summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/media/vaapi_h264_decoder.cc
diff options
context:
space:
mode:
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-29 20:54:47 +0000
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-29 20:54:47 +0000
commit3ca1f03a84ff79974c3a3cf5bbd12f4f7dbd532d (patch)
tree57c9579459c30b17c3bb1a057f5eeeb6823477bf /content/common/gpu/media/vaapi_h264_decoder.cc
parent7dad5a3c1e2cef4b94d68b1b4bab9408a32b6480 (diff)
downloadchromium_src-3ca1f03a84ff79974c3a3cf5bbd12f4f7dbd532d.zip
chromium_src-3ca1f03a84ff79974c3a3cf5bbd12f4f7dbd532d.tar.gz
chromium_src-3ca1f03a84ff79974c3a3cf5bbd12f4f7dbd532d.tar.bz2
Fix uninitialized variable in vaapi_h264_decoder.cc.
It's giving me compiling errors when I try to do a clean Release static library build. ---------------------------------- u/media/vaapi_h264_decoder.cc -o obj/content/common/gpu/media/content_common.vaapi_h264_decoder.o cc1plus: warnings being treated as errors ../../content/common/gpu/media/vaapi_h264_decoder.cc: In member function 'bool content::VaapiH264Dec oder::ModifyReferencePicList(content::H264SliceHeader*, int)': ../../content/common/gpu/media/vaapi_h264_decoder.cc:1507: error: 'pic_num_lx' may be used uninitialized in this function ---------------------------------- TBR=posciak@chromium.org BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10896024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153969 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/gpu/media/vaapi_h264_decoder.cc')
-rw-r--r--content/common/gpu/media/vaapi_h264_decoder.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/content/common/gpu/media/vaapi_h264_decoder.cc b/content/common/gpu/media/vaapi_h264_decoder.cc
index f69ea94..863ea28 100644
--- a/content/common/gpu/media/vaapi_h264_decoder.cc
+++ b/content/common/gpu/media/vaapi_h264_decoder.cc
@@ -1506,7 +1506,7 @@ bool VaapiH264Decoder::ModifyReferencePicList(H264SliceHeader *slice_hdr,
int pic_num_lx_no_wrap;
int pic_num_lx;
bool done = false;
- H264Picture *pic ;
+ H264Picture* pic;
for (int i = 0; i < H264SliceHeader::kRefListModSize && !done; ++i) {
switch (list_mod->modification_of_pic_nums_idc) {
case 0:
@@ -1562,7 +1562,8 @@ bool VaapiH264Decoder::ModifyReferencePicList(H264SliceHeader *slice_hdr,
H264SliceHeader::kRefListModSize);
pic = dpb_.GetLongRefPicByLongTermPicNum(list_mod->long_term_pic_num);
if (!pic) {
- DVLOG(1) << "Malformed stream, no pic num " << pic_num_lx;
+ DVLOG(1) << "Malformed stream, no pic num "
+ << list_mod->long_term_pic_num;
return false;
}
ShiftRightAndInsert(ref_pic_listx, ref_idx_lx,