shithub: openh264

Download patch

ref: d9e0f2b0239b3ebb54ca1c8bb574815ffcf740d1
parent: 39d725c113e3f01447e8e0583ebe2e509ade0c8a
author: Daniel J. Hofmann <[email protected]>
date: Tue Oct 14 19:36:14 EDT 2014

Wtautological-undefined-compare

--- a/codec/encoder/core/inc/picture.h
+++ b/codec/encoder/core/inc/picture.h
@@ -104,7 +104,6 @@
    *	set picture as unreferenced
    */
   void SetUnref () {
-    if (NULL != this)	{
       iFramePoc		= -1;
       iFrameNum		= -1;
       uiTemporalId	=
@@ -117,7 +116,6 @@
 
       if (NULL != pScreenBlockFeatureStorage)
         pScreenBlockFeatureStorage->bRefBlockFeatureCalculated	= false;
-    }
   }
 
 } SPicture;