 					}
 				}
 				
+				if(avccTag)
+				{
+					avccTag.timestamp = _vTag.timestamp;
+					writeReturnTag(avccTag);
+					avccTag = null;
+				}
+				
 				if(_vTag && _vTagData.length > 0)
 				{
-					
-					if(avccTag)
-					{
-						avccTag.timestamp = _vTag.timestamp;
-						writeReturnTag(avccTag);
-						//avccTag = null;
-					}
 					_vTag.data = _vTagData; // set at end (see below)
 					writeReturnTag(_vTag);
 					if (VideoInfo.glitchMode) {

		}
	
	} // class
} // package

		
		public function HTTPStreamingMP2PESVideo()
		{
			_scState = 0;
			_nalData = new ByteArray();
			_vTag = null;
